mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-22 19:44:02 +08:00
70 lines
2.2 KiB
PHP
70 lines
2.2 KiB
PHP
<?php
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
use GO\Scheduler;
|
|
|
|
$scheduler = new Scheduler();
|
|
|
|
$script = __DIR__ . '/console.php';
|
|
|
|
$bin = '/usr/bin/php';
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_learning', '--action' => 'main'])
|
|
->at('*/3 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'order', '--action' => 'main'])
|
|
->at('*/5 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'vod_event', '--action' => 'main'])
|
|
->at('*/5 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'close_trade', '--action' => 'main'])
|
|
->at('*/10 * * * *');
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'live_notice_consumer', '--action' => 'main'])
|
|
->at('*/15 * * * *');
|
|
|
|
$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_course_counter', '--action' => 'main'])
|
|
->hourly(13);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_chapter_counter', '--action' => 'main'])
|
|
->hourly(17);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_comment_counter', '--action' => 'main'])
|
|
->hourly(19);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_consult_counter', '--action' => 'main'])
|
|
->hourly(23);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'sync_review_counter', '--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' => 'count_course', '--action' => 'main'])
|
|
->daily(3, 17);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'live_notice_provider', '--action' => 'main'])
|
|
->daily(3, 23);
|
|
|
|
$scheduler->php($script, $bin, ['--task' => 'clean_token', '--action' => 'main'])
|
|
->daily(3, 31);
|
|
|
|
$scheduler->run(); |