Commit 4bad8618 authored by xiabin's avatar xiabin

修改计划任务

parent fe4f446e
...@@ -52,24 +52,18 @@ class TaskController extends Controller ...@@ -52,24 +52,18 @@ class TaskController extends Controller
//minute hour mday month wday [year] //minute hour mday month wday [year]
$jobby->add('WithdrawSettle', [ $jobby->add('WithdrawSettle', [
'command' => "$yiiCommand withdraw/settle", 'command' => "$phpBin $yiiCommand withdraw/settle",
'schedule' => '30 8 * * 1-5', //每周一到周五上午8:30 'schedule' => '30 8 * * 1-5', //每周一到周五上午8:30
'output' => $output, 'output' => $output,
'enabled' => TRUE 'enabled' => TRUE
]); ]);
$jobby->add('ClearUploadPool', [ $jobby->add('ClearUploadPool', [
'command' => "$yiiCommand maintain/clear-upload-pool", 'command' => "$phpBin $yiiCommand maintain/clear-upload-pool",
'schedule' => '15 */2 * * *', //每隔两小时的第15分钟 'schedule' => '15 */2 * * *', //每隔两小时的第15分钟
'output' => $output, 'output' => $output,
'enabled' => TRUE 'enabled' => TRUE
]); ]);
$jobby->add('ClearUploadPool', [
'command' => "$yiiCommand test/index",
'schedule' => '* * * * *', //每隔两小时的第15分钟
'output' => $output,
'enabled' => TRUE
]);
$jobby->run(); $jobby->run();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment