Changes to job running to clean up code
This commit is contained in:
parent
a7943553d3
commit
413a22a3d5
6 changed files with 85 additions and 192 deletions
|
@ -3,7 +3,7 @@
|
|||
namespace Pterodactyl\Jobs\Schedule;
|
||||
|
||||
use Exception;
|
||||
use Carbon\Carbon;
|
||||
use Cake\Chronos\Chronos;
|
||||
use Pterodactyl\Jobs\Job;
|
||||
use InvalidArgumentException;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
@ -158,7 +158,7 @@ class RunTaskJob extends Job implements ShouldQueue
|
|||
$repository = app()->make(ScheduleRepositoryInterface::class);
|
||||
$repository->withoutFreshModel()->update($this->schedule, [
|
||||
'is_processing' => false,
|
||||
'last_run_at' => Carbon::now()->toDateTimeString(),
|
||||
'last_run_at' => Chronos::now()->toDateTimeString(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue