Replies: 1 comment
-
It is difficult to see what could be wrong as the code is quite large. I recommend that you instead write a minimal case that works and then continue adding functionality until you spot the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi there i have a question about QueueEvents.
i am trying to set up concurrent jobs for a calculation. the problem i am having is, that my logic fully works if i have concurrency = 1. When i try to make it work in parallel a strange behaviour occures: only some jobs get noticed by the event "on completed".
the whole thing consists of two jobs within each other:
first there is
this is what i am doing:
in the main app:
the worker(wssWorker) looks like this:
inside the generateMesh function i do need to run some more jobs. but here is the problem what i dont understand: when i run the first job without concurrency or with concurrency = 1 then all jobs within generateMesh run completely. if i run this with concurrency of 2 or more the jobs inside generateMesh sometimes do not finish or better do not show up. the higher the concurrency value is, the more unlikely it is, that all jobs inside gererateMesh return their returnvalue.
here is the job part from the generateMesh function:
if anyone could spot if this is an expected behavior or possibly a bug (possibly not.. i am very new to bullmq ;) ) or what is going on here please please let me know!!!
thank you so much!!
Beta Was this translation helpful? Give feedback.
All reactions