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

Is it possible to get the Job ID of original job? #217

Closed
nasa42 opened this issue Apr 25, 2017 · 2 comments
Closed

Is it possible to get the Job ID of original job? #217

nasa42 opened this issue Apr 25, 2017 · 2 comments

Comments

@nasa42
Copy link

nasa42 commented Apr 25, 2017

SidekiqWorker.perform_async(1) usually returns the job-id of scheduled job. However, if the job is already scheduled, SidekiqWorker.perform_async(1) on subsequent calls will return nil. In latter case, is it possible to get the job-id of original job?

@mhenrixon
Copy link
Owner

To my knowledge that is not an easy task. I mean you could query based on the unique key and possibly get the jid from the hash we use but it would be quite complicated and time consuming.

@nasa42
Copy link
Author

nasa42 commented Apr 26, 2017

Thanks for answering.

@nasa42 nasa42 closed this as completed Apr 26, 2017
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