first commit

This commit is contained in:
zickkeen committed 2024-03-17 11:39:27 +07:00
commit d0e185820a
2710 files changed
+465112

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
<?php
/**
* This file configures default behavior for all workers
*
* To modify these parameters, copy this file into your own CakePHP config directory or copy the array into your existing file.
*/
return [
'Queue' => [
// time (in seconds) after which a job is requeued if the worker doesn't report back
'defaultworkertimeout' => 1800,
// seconds of running time after which the worker will terminate (0 = unlimited)
'workermaxruntime' => 120,
// minimum time (in seconds) which a task remains in the database before being cleaned up.
'cleanuptimeout' => 2592000, // 30 days
// number of retries if a job fails or times out.
'defaultworkerretries' => 1,
// seconds to sleep() when no executable job is found
'sleeptime' => 10,
// probability in percent of a old job cleanup happening
'gcprob' => 10,
// set to true for multi server setup, this will affect web backend possibilities to kill/end workers
'multiserver' => false,
// set this to a limit that can work with your memory limits and alike, 0 => no limit
'maxworkers' => 3,
// instruct a Workerprocess quit when there are no more tasks for it to execute (true = exit, false = keep running)
'exitwhennothingtodo' => false,
// seconds of running time after which the PHP process will terminate, null uses workermaxruntime * 100
'workertimeout' => null,
// determine whether logging is enabled
'log' => true,
// set default Mailer class
'mailerClass' => 'Cake\Mailer\Email',
// set default datasource connection
'connection' => null,
// enable Search. requires friendsofcake/search
'isSearchEnabled' => true,
// enable Search. requires frontend assets
'isStatisticEnabled' => false,
],
];