Skip to content
Discussion options

You must be logged in to vote

Hey Eric. No, unfortunately, there is no way to guarantee that with Sidequest using keys or specific mechanisms.

What you can do is schedule a job from within another job, something like this:

export class ProcessClipJob extends Job {
  async run(id: number) {
    // Process job here
    if (success) {
      await Sidequest.build(ProcessClipJob).enqueue(id + 1);
    }
  }
}

This way you will be sure that they are processed in sequence.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ericsouza
Comment options

Answer selected by ericsouza
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