refactor(jobs): remove logging for ScheduledJobManager and ServerResourceManager start and completion
This commit is contained in:
parent
9651e3a7ec
commit
11341d7c2c
2 changed files with 0 additions and 32 deletions
|
|
@ -58,10 +58,6 @@ public function handle(): void
|
|||
// Freeze the execution time at the start of the job
|
||||
$this->executionTime = Carbon::now();
|
||||
|
||||
Log::channel('scheduled')->info('ScheduledJobManager started', [
|
||||
'execution_time' => $this->executionTime->format('Y-m-d H:i:s T'),
|
||||
]);
|
||||
|
||||
// Process backups - don't let failures stop task processing
|
||||
try {
|
||||
$this->processScheduledBackups();
|
||||
|
|
@ -81,8 +77,6 @@ public function handle(): void
|
|||
'trace' => $e->getTraceAsString(),
|
||||
]);
|
||||
}
|
||||
|
||||
Log::channel('scheduled')->info('ScheduledJobManager completed');
|
||||
}
|
||||
|
||||
private function processScheduledBackups(): void
|
||||
|
|
@ -111,16 +105,6 @@ private function processScheduledBackups(): void
|
|||
}
|
||||
|
||||
if ($this->shouldRunNow($frequency, $serverTimezone)) {
|
||||
Log::channel('scheduled')->info('Dispatching backup job', [
|
||||
'backup_id' => $backup->id,
|
||||
'backup_name' => $backup->name ?? 'unnamed',
|
||||
'server_name' => $server->name,
|
||||
'frequency' => $frequency,
|
||||
'timezone' => $serverTimezone,
|
||||
'execution_time' => $this->executionTime?->format('Y-m-d H:i:s T'),
|
||||
'current_time' => Carbon::now()->format('Y-m-d H:i:s T'),
|
||||
]);
|
||||
|
||||
DatabaseBackupJob::dispatch($backup);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
|
@ -157,16 +141,6 @@ private function processScheduledTasks(): void
|
|||
}
|
||||
|
||||
if ($this->shouldRunNow($frequency, $serverTimezone)) {
|
||||
Log::channel('scheduled')->info('Dispatching task job', [
|
||||
'task_id' => $task->id,
|
||||
'task_name' => $task->name ?? 'unnamed',
|
||||
'server_name' => $server->name,
|
||||
'frequency' => $frequency,
|
||||
'timezone' => $serverTimezone,
|
||||
'execution_time' => $this->executionTime?->format('Y-m-d H:i:s T'),
|
||||
'current_time' => Carbon::now()->format('Y-m-d H:i:s T'),
|
||||
]);
|
||||
|
||||
ScheduledTaskJob::dispatch($task);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
|
|
|||
|
|
@ -59,10 +59,6 @@ public function handle(): void
|
|||
$this->instanceTimezone = config('app.timezone');
|
||||
}
|
||||
|
||||
Log::channel('scheduled')->info('ServerResourceManager started', [
|
||||
'execution_time' => $this->executionTime->format('Y-m-d H:i:s T'),
|
||||
]);
|
||||
|
||||
// Process server checks - don't let failures stop the job
|
||||
try {
|
||||
$this->processServerChecks();
|
||||
|
|
@ -72,8 +68,6 @@ public function handle(): void
|
|||
'trace' => $e->getTraceAsString(),
|
||||
]);
|
||||
}
|
||||
|
||||
Log::channel('scheduled')->info('ServerResourceManager completed');
|
||||
}
|
||||
|
||||
private function processServerChecks(): void
|
||||
|
|
|
|||
Loading…
Reference in a new issue