This commit is contained in:
ct
2025-08-12 04:32:37 +08:00
parent fdf8ca2e72
commit 21f4df11f8
2 changed files with 12 additions and 11 deletions

View File

@@ -16,6 +16,8 @@ class ProcessCrawlShotJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public $timeout = 120;
protected string $jobUuid;
public function __construct(string $jobUuid)
@@ -52,7 +54,6 @@ public function handle(): void
'status' => 'completed',
'completed_at' => now()
]);
} catch (\Exception $e) {
Log::error("Job {$this->jobUuid} failed: " . $e->getMessage());

View File

@@ -85,7 +85,7 @@
*/
'waits' => [
'redis:default' => 60,
'redis:default' => 120,
],
/*
@@ -189,9 +189,9 @@
'maxProcesses' => 1,
'maxTime' => 0,
'maxJobs' => 0,
'memory' => 128,
'memory' => 4096,
'tries' => 1,
'timeout' => 60,
'timeout' => 120,
'nice' => 0,
],
],