Skip to content
Discussion options

You must be logged in to vote

Hi 👋

or is there something more I'm missing?

Unfortunately, your example won't run as it is. To enqueue a Job, you will need to fix 2 things:

  1. Make enqueue_delete_stuff_in_db function async, otherwise you won't be able to do await
  2. Open a connection, as described in https://repid.aleksul.space/1.0.0rc3/user_guide/initial_setup/

In case there are several instances of app running how would this behave. Would i need to make sure only one is running it?

Short answer: it depends. In an ideal world, you would set an id to your Job, which will make it unique. This behavior is described here.

However, not all brokers are supporting this functionality (e.g. current Redis implementation does su…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aleksul
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
Converted from issue

This discussion was converted from issue #79 on March 09, 2023 17:08.