spatie/laravel-dynamic-servers
Dynamically spin up and destroy servers from Laravel to handle variable queue workloads. Uses provider snapshots as templates and lets you determine server count (e.g., based on Horizon wait times) so extra workers are created automatically and removed when no longer needed.
Whenever the makes internally gets an exception (most probably because of the server provider API returning an error) we update the Server model with a status errored. We'll consider that this server is not operational, and we'll not count it when determine how many servers we should start, stop or reboot when calling DynamicServers::ensure($number).
We will also fire an event ServerErroredEvent so you can take an appropriate action (sending a notification, manually deleting the server, ...). This event has two properties:
$server: the server that is hanging$previousStatus: this can be starting, stopping or rebooting.How can I help you explore Laravel packages today?