Refactoring: extract process handling from async job.

This commit is contained in:
Joao Patricio 2023-03-21 09:32:16 +00:00
parent d0d33da493
commit 83a7ef21f3
4 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
<?php
namespace App\Services\RemoteProcess;
namespace App\Actions\RemoteProcess;
use App\Services\ProcessStatus;
use App\Enums\ProcessStatus;
use Illuminate\Process\ProcessResult;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Process;

View File

@ -1,6 +1,6 @@
<?php
namespace App\Services;
namespace App\Enums;
enum ProcessStatus: string
{

View File

@ -2,9 +2,8 @@
namespace App\Jobs;
use App\Services\RemoteProcess\RemoteProcess;
use App\Actions\RemoteProcess\RemoteProcess;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;

View File

@ -2,6 +2,7 @@
namespace App\Services;
use App\Enums\ProcessStatus;
use App\Jobs\ExecuteCoolifyProcess;
use Spatie\Activitylog\Contracts\Activity;