Skip to content
Discussion options

You must be logged in to vote

Hey Frederik.

So what happens if I enqueue a job that will be executed in some minutes, but between enqueuing and running the Job, the code for the Job was updated. Will Sidequest run the new or the old version of the code?

Sidequest will always run the script you have on disk, so the new code in your hypothetical situation.

Same question for configuration changes: Let's assume that my Job calls an external API and the path to that API could change. Is it better to pass the path to that API as parameter in enqueue(), or is this something I would rather put into Job.run() (e.g. loading it from an env var)?

That's completely up to you. It's a design decision.

I suppose that the best wa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frederikheld
Comment options

Answer selected by frederikheld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants