SyncQueueDriver
The always-available default driver (queue.default_driver = sync): push() executes the job inline, in-process, with blocking retries via JobExecutor::executeWithRetries().
Safe for dev/test; production use should configure a persistent driver (e.g. quioteframework/queue-db) so job execution doesn’t block the request that pushed it.
Synopsis
Section titled “Synopsis”final readonly class SyncQueueDriver implements QueueDriverInterface
| Implements | QueueDriverInterface |
| Source | SyncQueueDriver.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(JobExecutor $executor): mixed
| Parameter | Type | Description |
|---|---|---|
$executor | JobExecutor |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
push(JobPayload $payload): void | Runs the job immediately, in the calling process. |
push()
Section titled “push()”public function push(JobPayload $payload): void
Runs the job immediately, in the calling process.
Delegates to JobExecutor::executeWithRetries(), so the caller blocks for the whole attempt-and-backoff cycle and any permanent failure has already been recorded with the FailedJobStoreInterface by the time this returns. JobPayload::$availableAt is not honoured — there is no backlog to defer into.
| Parameter | Type | Description |
|---|---|---|
$payload | JobPayload |