-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig.php
More file actions
29 lines (28 loc) · 675 Bytes
/
config.php
File metadata and controls
29 lines (28 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* 配置文件
*
*/
@ini_set('date.timezone','Asia/Shanghai');
@ini_set('default_socket_timeout', -1);
defined('__URL__') or define('__URL__',dirname(__FILE__).DIRECTORY_SEPARATOR);
$config = array(
//队列使用的redis
'redis'=>array(
'host' => '127.0.0.1',
'port'=>6379,
'db'=>0
),
//redis 默认队列key
'queue_key'=>'celery_startup_zset',
//进程数
'process'=>5,
//保持脚本持续(为false时,处理完数据 脚本结束)
'keep'=>false,
//消费失败重新执行次数,0不重复执行,-1一直执行
'again'=>-1,
//执行log
'logs'=>'logs/log_{date}.log',
//错误log
'error_logs'=>'logs/error_{date}.log',
);