What is the proper way to update the job data of a jobScheduler? #78
Unanswered
arthurvanl
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use
Queue#upsertJobSchedulerto start recurrent jobs.The job data that I pass into this needs to be different for every scheduled/queued job.
So what I now do is, everytime a
activeworker event is triggered, I update the job scheduler by calling theupsertJobSchedulerfn again.But sometimes it seems that I am too late and then the job is already scheduled with the old job data.
What is the proper way of updating the job data of cron job?
Beta Was this translation helpful? Give feedback.
All reactions