Replies: 3 comments
-
oh wait I think I see the issue - I hope that's it at least. Brb! |
Beta Was this translation helpful? Give feedback.
-
Yep that was it - the queue name was wrong 🙃 - Queue: "cleanup_queue",
+ Queue: "cancel_queue", Sorry for the noise - it was actually very helpful for me to write those two chunks in one place and quickly see the issue! Moving on to the next step (this project is immensely fun). |
Beta Was this translation helpful? Give feedback.
-
@vsoch Hi, going forward could you hold off on creating issues until you're fairly sure there's a confirmed bug in River and you have an isolated, minimal, and reproducible example to demonstrate it? There are other people who subscribe to the issue tracker here and all these issues result in a lot of broadcasted noise for what is ultimately you looking for community support. The discussions section is much more useful for that, btw, which is why I keep converting your issues into discussions. |
Beta Was this translation helpful? Give feedback.
-
I'm creating a client and workers as follows - note there is a main queue that a scheduler is using to receive jobs (and then allocate resources) and a cleanup queue that will have a job added after the resources are allocated. For example "This job was just scheduled for a duration of an hour, make sure to run the cancel / cleanup worker in an hour."
And note that AddWorkers for the strategy is registering both types:
In the work function, we define a job as needed a spec with resources,
Note that the context above given to
SubmitCleanup
is the same one for the worker, so we should be able to create an "in worker" client. Here that is:The problem is that I can see that function runs through completion (I see the
SUBMIT CLEANUP
at the end) but I never see any output from the job, where the first thing that happens is a print statement. Is it the case that a worker of type A cannot access a worker of type B (associated with the same client) because it's a different queue? Or there is something off about the context I'm using, or another step to register the job type again? Thanks for the help!Beta Was this translation helpful? Give feedback.
All reactions