Question 1 / 4 A job needs a row created in the current transaction. When should it be dispatched?
afterCommit() waits for a successful commit, so the worker can see the row. A delay cannot establish that boundary.
Review the lesson Question 2 / 4 The transaction rolls back after scheduling an afterCommit job. What should the queue contain from this operation?
DB::beginTransaction();
MarkTaskReminder::dispatch($id)->afterCommit();
DB::rollBack();
A rollback discards the pending dispatch registered by that transaction. There is no committed work for this job.
Review the lesson Question 3 / 4 Two workers may process reminders for the same task. Which lock key allows different tasks to run independently?
Attempts for the same task must contend for the same lock. Different task IDs can safely use different locks.
Review the lesson Question 4 / 4 schedule:list shows your command. How do you verify it actually runs when due?
The list describes the schedule. Running a due tick and checking the result exercises the actual execution path.
Review the lesson Round resultRevisit the missed topics
This browser could not save your score.
My challenge record Each answer is worth 25 points. Replays keep your highest score.