mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-27 04:57:39 +08:00
# Conflicts: # app/Console/Tasks/CleanLogTask.php # app/Console/Tasks/DeliverTask.php # app/Console/Tasks/NoticeTask.php # app/Http/Admin/Services/AuthNode.php # app/Http/Admin/Services/Setting.php # app/Http/Api/Services/Account.php # app/Library/Utils/Lock.php # app/Listeners/Trade.php # app/Listeners/User.php # app/Models/Course.php # app/Models/Online.php # app/Models/UserSession.php # app/Models/UserToken.php # app/Services/Auth/Api.php # app/Services/Auth/Home.php
64 lines
1.9 KiB
PHP
64 lines
1.9 KiB
PHP
<?php
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
use GO\Scheduler;
|
|
|
|
$scheduler = new Scheduler();
|
|
|
|
$script = __DIR__ . '/console.php';
|
|
|
|
$bin = '/usr/local/bin/php';
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'deliver', '--action' => 'main'])
|
|
->at('*/3 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'notice', '--action' => 'main'])
|
|
->at('*/3 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_learning', '--action' => 'main'])
|
|
->at('*/7 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'vod_event', '--action' => 'main'])
|
|
->at('*/5 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'close_trade', '--action' => 'main'])
|
|
->at('*/13 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'point_gift_deliver', '--action' => 'main'])
|
|
->at('*/11 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'close_order', '--action' => 'main'])
|
|
->hourly(3);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'refund', '--action' => 'main'])
|
|
->hourly(7);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_course_index', '--action' => 'main'])
|
|
->hourly(11);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_group_index', '--action' => 'main'])
|
|
->hourly(17);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_user_index', '--action' => 'main'])
|
|
->hourly(23);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_course_score', '--action' => 'main'])
|
|
->hourly(29);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'clean_log', '--action' => 'main'])
|
|
->daily(3, 3);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'unlock_user', '--action' => 'main'])
|
|
->daily(3, 7);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'revoke_vip', '--action' => 'main'])
|
|
->daily(3, 11);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sitemap', '--action' => 'main'])
|
|
->daily(4, 3);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'renew_live_course_demo', '--action' => 'main'])
|
|
->daily(4, 7);
|
|
|
|
$scheduler->run(); |