Skip to content

A self-hosted media server and file management system

fix: redis jobs retry automatically early even if long jobs such as embed are still running and have not timed out via horizon

aminnausinb5dbeacdff15
diff --git a/app/Jobs/EmbedUidInMetadata.php b/app/Jobs/EmbedUidInMetadata.php
index b5713994..5398a1b7 100644
--- a/app/Jobs/EmbedUidInMetadata.php
+++ b/app/Jobs/EmbedUidInMetadata.php
@@ -36,7 +36,7 @@ class EmbedUidInMetadata implements ShouldQueue {
protected $taskService;
- public $timeout = 3600;
+ public $timeout = 86400;
/**
* Create a new job instance.
diff --git a/config/queue.php b/config/queue.php
index 384b02cf..0b52e287 100755
--- a/config/queue.php
+++ b/config/queue.php
@@ -77,7 +77,7 @@ return [
'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => env('REDIS_QUEUE', 'default'),
- 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
+ 'retry_after' => 172800, //Rely on Horizon to decide retries instead of Laravel -> Original: (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
'block_for' => null,
'after_commit' => false,
],