Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled jobs displays already running job after-rerunning #242

Open
dgmora opened this issue Feb 5, 2025 · 0 comments
Open

Scheduled jobs displays already running job after-rerunning #242

dgmora opened this issue Feb 5, 2025 · 0 comments

Comments

@dgmora
Copy link

dgmora commented Feb 5, 2025

Something quite small, but if you click Run now in the first scheduled job (or any I guess) when you're redirected to the index page, that same job will still appear in the page, even if it has already been scheduled. If you click Run now, you'll get an exception:

"This operation can only be performed on blocked or scheduled jobs, but this job is


DispatchesController#create
This operation can only be performed on blocked or scheduled jobs, but this job is finished

  # raise an error +ActiveJob::Errors::InvalidOperation+ otherwise.
  def dispatch_job(job)
    raise ActiveJob::Errors::InvalidOperation, "This operation can only be performed on blocked or scheduled jobs, but this job is ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant