Skip to content
Discussion options

You must be logged in to vote

Hey @blikblum.

It's somewhat possible.

You can enqueue jobs from within other jobs, so what you can do is:

Start your job number 1
Then within job number 1, when it succeeds and before returning, call Sidequest.enqueue() to enqueue your multiple jobs from step number 2.
Here it's a bit trickier, because there is no easy way to know from within the parallel jobs if they all have completed.

You can, however, fetch the list of all jobs of a given type using Sidequest.job.list or fetch a specific one using Sidequest.job.get.

What I suggest:

Create a new job called ProviderJobChecker that receives an array of job IDs containing all of the parallel jobs IDs. This should be enqueued right after …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by blikblum
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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