Repository navigation
Fixed
queue:autoscaleno longer crashes when the host app uses immutable dates. Apps that callDate::use(CarbonImmutable::class)get aCarbonImmutablefromnow(), but the manager passednow()into timestamps typed as mutableIlluminate\Support\Carbon. The first worker spawn threwTypeError: WorkerProcess::__construct(): Argument #4 ($spawnedAt) must be of type Illuminate\Support\Carbon, Carbon\CarbonImmutable given, so no worker ever started. Termination and workload-state cleanup had the same problem.WorkerProcessandWorkloadStateTrackernow takeCarbonInterface, so both mutable and immutable dates work. (#73)
Upgrading
No configuration changes. Passing a Carbon still works. WorkerProcess::$spawnedAt now reads as CarbonInterface. A subclass of WorkerProcess that overrides markTerminationRequested() or terminationDeadlinePassed() with Carbon parameters has to widen them. Restart every queue:autoscale after upgrading.