Replies: 1 comment 1 reply
-
Some documentation: https://docs.bullmq.io/guide/flows |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
,job3
etc, and sayjob1
runs and returns some data that thejob2
needs to run and then returns some data thatjob3
needs 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_files
will return list ofmedia
files asstring[]
which then theextract_metadata
job needs to go over and finally return the list of metadata, which then thesave_metadata
job 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.
Beta Was this translation helpful? Give feedback.
All reactions