Summer Sale! All accounts are 50% off this week.

loveThisCode's avatar

Testing Job Order with priorities

Hello community,

Is there an elegant way to test the order the Job Queue is processing?

Let's say I have Job1->onQueue('1'), Job2->onQueue('2') ... JobN->onQueue('N') and I want to write a test, which checks if these Jobs are executed in the following queue order:

  1. Job1
  2. Job2
  3. Job3

when the queue is filled in this order:

  1. Job2
  2. Job1
  3. Job3

Thanks

0 likes
0 replies

Please or to participate in this conversation.