Skip to content

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.

final readonly class SyncQueueDriver implements QueueDriverInterface

ImplementsQueueDriverInterface
SourceSyncQueueDriver.php

public function __construct(JobExecutor $executor): mixed

ParameterTypeDescription
$executorJobExecutor

Returns mixed

MethodDescription
push(JobPayload $payload): voidRuns the job immediately, in the calling process.

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.

ParameterTypeDescription
$payloadJobPayload