同步条数
This commit is contained in:
parent
a8fcef6f14
commit
bd5ed09cb6
@ -27,7 +27,7 @@ class Kernel extends ConsoleKernel
|
|||||||
{
|
{
|
||||||
$logPath = storage_path('logs/artisan.log');
|
$logPath = storage_path('logs/artisan.log');
|
||||||
$schedule->command('real:sync-mongo')->cron('* * * * *')->withoutOverlapping()->appendOutputTo($logPath);
|
$schedule->command('real:sync-mongo')->cron('* * * * *')->withoutOverlapping()->appendOutputTo($logPath);
|
||||||
$schedule->command('virtual:sync-card')->cron('* * * * *')->withoutOverlapping()->appendOutputTo($logPath);
|
// $schedule->command('virtual:sync-card')->cron('* * * * *')->withoutOverlapping()->appendOutputTo($logPath);
|
||||||
// $schedule->command('virtual:sync-log')->cron('* * 1 * *')->withoutOverlapping()->appendOutputTo($logPath);
|
// $schedule->command('virtual:sync-log')->cron('* * 1 * *')->withoutOverlapping()->appendOutputTo($logPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class MongoSync extends Command
|
|||||||
|
|
||||||
protected $description = '同步卡基础信息数据';
|
protected $description = '同步卡基础信息数据';
|
||||||
|
|
||||||
protected $limit = 100;
|
protected $limit = 10000;
|
||||||
|
|
||||||
const CURSOR_KEY = 'sync_mongo_cursor';
|
const CURSOR_KEY = 'sync_mongo_cursor';
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class CardSync extends Command
|
|||||||
|
|
||||||
const CURSOR_KEY = 'sync_card_cursor';
|
const CURSOR_KEY = 'sync_card_cursor';
|
||||||
|
|
||||||
protected $limit = 100;
|
protected $limit = 10000;
|
||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ class LogSync extends Command
|
|||||||
|
|
||||||
const CURSOR_KEY = 'sync_log_cursor';
|
const CURSOR_KEY = 'sync_log_cursor';
|
||||||
|
|
||||||
protected $limit = 100;
|
protected $limit = 10000;
|
||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user