changed logic in schdeuler
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m33s
Laravel Larastan / larastan (pull_request) Failing after 3m34s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m33s
Laravel Larastan / larastan (pull_request) Failing after 3m34s
This commit is contained in:
@@ -210,35 +210,25 @@ class Scheduler extends Command
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'Daily':
|
case 'Daily':
|
||||||
// if (now()->format('H:i') == '16:06') {
|
if (now()->format('H:i') == '16:20') {
|
||||||
// try {
|
try {
|
||||||
// \Artisan::call('send:invoice-transit-report', [
|
\Artisan::call('send:invoice-transit-report', [
|
||||||
// 'schedule_type' => $rule->schedule_type,
|
|
||||||
// 'plant' => $rule->plant,
|
|
||||||
// ]);
|
|
||||||
|
|
||||||
// Log::info('Invoice Transit executed', [
|
|
||||||
// 'plant' => $rule->plant,
|
|
||||||
// 'type' => $rule->schedule_type,
|
|
||||||
// ]);
|
|
||||||
// }
|
|
||||||
// catch (\Throwable $e) {
|
|
||||||
// Log::error('Invoice Transit FAILED', [
|
|
||||||
// 'plant' => $rule->plant,
|
|
||||||
// 'error' => $e->getMessage(),
|
|
||||||
// 'trace' => $e->getTraceAsString(),
|
|
||||||
// ]);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
$now = now();
|
|
||||||
if ($now->between(
|
|
||||||
$now->copy()->setTime(16, 17, 0),
|
|
||||||
$now->copy()->setTime(16, 18, 0)
|
|
||||||
)) {
|
|
||||||
Artisan::call('send:invoice-transit-report', [
|
|
||||||
'schedule_type' => $rule->schedule_type,
|
'schedule_type' => $rule->schedule_type,
|
||||||
'plant' => $rule->plant,
|
'plant' => $rule->plant,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Log::info('Invoice Transit executed', [
|
||||||
|
'plant' => $rule->plant,
|
||||||
|
'type' => $rule->schedule_type,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
catch (\Throwable $e) {
|
||||||
|
Log::error('Invoice Transit FAILED', [
|
||||||
|
'plant' => $rule->plant,
|
||||||
|
'error' => $e->getMessage(),
|
||||||
|
'trace' => $e->getTraceAsString(),
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user