InCrescendo
2 weeks ago

Kill Horizon single process after X jobs

Posted 2 weeks ago by InCrescendo

Hi,

I am working with Horizon, and I have a problem. Due to the PHP way of working with long-running processes, I stumble upon some performance issues with some queues processing.

When I start my consumers, jobs in these queues are processed in ~0.1s. After 10 minutes, runtime skyrockets to 5s.

Is it possible to specify to kill a specific horizon process after it processes, let's say, ten jobs?

Thanks a lot!

Please sign in or create an account to participate in this conversation.