| Conditions | 5 |
| Paths | 4 |
| Total Lines | 23 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 6 | ||
| Bugs | 0 | Features | 5 |
| 1 | <?php |
||
| 25 | protected function schedule(Schedule $schedule) |
||
| 26 | { |
||
| 27 | |||
| 28 | $schedule->command('scheduling:updateSiteRank')->dailyAt('01:00')->description("Update Rank"); |
||
| 29 | |||
| 30 | $schedule->command('scheduling:updateSiteMap')->dailyAt('02:00')->description("Update SiteMap"); |
||
| 31 | |||
| 32 | $schedule->command('scheduling:updateTrendingGroups')->dailyAt('03:00')->description("Update Trending Groups"); |
||
| 33 | |||
| 34 | $schedule->command('scheduling:updateGroupElo')->dailyAt('04:00')->description("Update Group Elo"); |
||
| 35 | |||
| 36 | $schedule->command('scheduling:syncRankClarification')->everyMinute()->description("Sync Remote Contest Rank and Clarification"); |
||
| 37 | |||
| 38 | $schedule->command('scheduling:syncContestProblem')->everyMinute()->description("Sync Remote Contest Problem"); |
||
| 39 | |||
| 40 | $schedule->command('scheduling:updateJudgeServerStatus')->everyMinute()->description("Update Judge Server Status"); |
||
| 41 | |||
| 42 | if (!config("app.debug") && config("app.backup")) { |
||
| 43 | $schedule->command('backup:run')->weekly()->description("BackUp Site"); |
||
| 44 | } |
||
| 45 | |||
| 46 | if (!config("app.debug") && config("app.backup")) { |
||
| 47 | $schedule->command('backup:run --only-db')->dailyAt('00:30')->description("BackUp DataBase"); |
||
| 48 | } |
||
| 63 |