Skip to content

Async jobs don't run when added to a task obtained via find #4

@toddthomas

Description

@toddthomas

It's common to obtain a reference to an already created task using the find class method.

task = Resque::Plugins::MultiStepTask.find(task_id)

If you then try to add a job to that task

task.add_job(SomeJob)

the job is never queued: that only happens if the task is started, which is tracked by an instance variable that isn't persisted.

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