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

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

Open
toddthomas opened this issue Sep 17, 2014 · 2 comments
Open

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

toddthomas opened this issue Sep 17, 2014 · 2 comments

Comments

@toddthomas
Copy link
Contributor

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.

@toddthomas
Copy link
Contributor Author

See example added to branch issue-4.

@DCameronMauch
Copy link

This bug has been identified, and I believe fixed. Add another test along with yours, which are both now passing. We will be doing some manual testing just to verify.

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

2 participants