mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 16:15:17 +00:00
unique job
This commit is contained in:
1 parent
1477e9c35c
commit
063945d9c5
1 file changed
+2
-2
@@ -12,17 +12,17 @@ use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Log;
|
||||
|
||||
class InstanceAutoUpdateJob implements ShouldQueue
|
||||
class InstanceAutoUpdateJob implements ShouldQueue, ShouldBeUnique
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public $tries = 1;
|
||||
public $timeout = 120;
|
||||
|
||||
public Server $server;
|
||||
public string $latest_version;
|
||||
public string $current_version;
|
||||
|
||||
|
||||
public function __construct(private bool $force = false)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user