Refactoring: extract process handling from async job.
This commit is contained in:
parent
d0d33da493
commit
83a7ef21f3
@ -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;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
namespace App\Enums;
|
||||
|
||||
enum ProcessStatus: string
|
||||
{
|
@ -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;
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Enums\ProcessStatus;
|
||||
use App\Jobs\ExecuteCoolifyProcess;
|
||||
use Spatie\Activitylog\Contracts\Activity;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user