Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 427 Bytes

driver-sync.md

File metadata and controls

18 lines (15 loc) · 427 Bytes

Synchronous Driver

Runs tasks synchronously in the same process if the handle property is turned on. It could be used when developing and debugging an application.

Configuration example:

return [
    'components' => [
        'queue' => [
            'class' => \yii\queue\sync\Queue::class,
            'handle' => false, // whether tasks should be executed immediately
        ],
    ],
];