Skip to content

Commit

Permalink
CoolifyTask should be on high queue
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Nov 21, 2024
1 parent 6da5221 commit 9dd982b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/Actions/CoolifyTask/PrepareCoolifyTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Actions\CoolifyTask;

use App\Data\CoolifyTaskArgs;
use App\Enums\ActivityTypes;
use App\Jobs\CoolifyTask;
use Spatie\Activitylog\Models\Activity;

Expand Down Expand Up @@ -47,11 +46,7 @@ public function __invoke(): Activity
call_event_on_finish: $this->remoteProcessArgs->call_event_on_finish,
call_event_data: $this->remoteProcessArgs->call_event_data,
);
if ($this->remoteProcessArgs->type === ActivityTypes::COMMAND->value) {
dispatch($job)->onQueue('high');
} else {
dispatch($job);
}
dispatch($job)->onQueue('high');
$this->activity->refresh();

return $this->activity;
Expand Down

0 comments on commit 9dd982b

Please sign in to comment.