Job Queue sequence

Do all background tasks run sequentially in the same queue? Meaning, does anything scheduled as a background task always wait for the prior to finish or can they be structured to run concurrently if needed?

Background Tasks can, and likely will, be run in parallel. The only way to guarantee that two or more background tasks run sequentially is to use the same sequential execution id when queuing the job. When two jobs have the same id, they will never be run in parallel and should be picked up in the order they were submitted.

5 Likes