CoolifyTask should be on high queue
This commit is contained in:
parent
6da5221503
commit
9dd982b722
1 changed files with 1 additions and 6 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
namespace App\Actions\CoolifyTask;
|
namespace App\Actions\CoolifyTask;
|
||||||
|
|
||||||
use App\Data\CoolifyTaskArgs;
|
use App\Data\CoolifyTaskArgs;
|
||||||
use App\Enums\ActivityTypes;
|
|
||||||
use App\Jobs\CoolifyTask;
|
use App\Jobs\CoolifyTask;
|
||||||
use Spatie\Activitylog\Models\Activity;
|
use Spatie\Activitylog\Models\Activity;
|
||||||
|
|
||||||
|
|
@ -47,11 +46,7 @@ public function __invoke(): Activity
|
||||||
call_event_on_finish: $this->remoteProcessArgs->call_event_on_finish,
|
call_event_on_finish: $this->remoteProcessArgs->call_event_on_finish,
|
||||||
call_event_data: $this->remoteProcessArgs->call_event_data,
|
call_event_data: $this->remoteProcessArgs->call_event_data,
|
||||||
);
|
);
|
||||||
if ($this->remoteProcessArgs->type === ActivityTypes::COMMAND->value) {
|
dispatch($job)->onQueue('high');
|
||||||
dispatch($job)->onQueue('high');
|
|
||||||
} else {
|
|
||||||
dispatch($job);
|
|
||||||
}
|
|
||||||
$this->activity->refresh();
|
$this->activity->refresh();
|
||||||
|
|
||||||
return $this->activity;
|
return $this->activity;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue