Skip to content

Scheduled jobs displays already running job after-rerunning #242

@dgmora

Description

@dgmora

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions