Skip to content
Discussion options

You must be logged in to vote

@almottier I would typically handle this by keeping both sets of args around for a transitional period, following this rough strategy:

  1. Add the UserID field and start using it on the enqueueing side where you can.
  2. Update the worker to prefer UserID but fall back to User if that's all there is (can be deployed together with the above).
  3. Once all relevant jobs have been worked or cleared out of the queue, remove the old field so it's just UserID remaining.

You could definitely adopt a versioned strategy if you're trying to solve this with a general pattern beyond just this one simple case.

Not sure if this is enough to help you, let me know if I can elaborate on anything!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@almottier
Comment options

@brandur
Comment options

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