ignore command center errors

This commit is contained in:
Andras Bacsai
2023-06-07 15:39:08 +02:00
parent 9c055f2149
commit 6e084db3d9
6 changed files with 32 additions and 24 deletions

View File

@@ -19,6 +19,7 @@ class CoolifyTask implements ShouldQueue
*/
public function __construct(
public Activity $activity,
public bool $ignore_errors = false,
) {
}
@@ -27,8 +28,10 @@ class CoolifyTask implements ShouldQueue
*/
public function handle(): void
{
$remote_process = resolve(RunRemoteProcess::class, [
'activity' => $this->activity,
'ignore_errors' => $this->ignore_errors,
]);
$remote_process();