Replies: 1 comment 1 reply
|
Some documentation: https://docs.bullmq.io/guide/flows |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was using
node-cron, but it felt limited so looking around I found couple of things and I couldn't decide, but for now I'm trying BullMQ out.I could not find much real life example for using Bull or BullMQ and the documentation is not the best either.
If a queue has multiple jobs, say
job1,job2,job3etc, and sayjob1runs and returns some data that thejob2needs to run and then returns some data thatjob3needs to run. How do you pass this data from job to job?From what I understand, you would have something like this,
here
get_media_fileswill return list ofmediafiles asstring[]which then theextract_metadatajob needs to go over and finally return the list of metadata, which then thesave_metadatajob needs which saves all the metadata to a DB.how would you pass that data? also I'm not sure what initial data you pass to each job?
I basically want to run tasks on schedule and get the state, status etc from the tasks.
All reactions