1. Home
  2. Developer tools
  3. How do I manage queue workers via cPanel?

How do I manage queue workers via cPanel?

The feature for managing queue workers is available on our Premium and Deluxe web hosting accounts, Agency services, and Managed Servers. If you currently have a Standard web hosting account, you need to upgrade to gain access to the feature.

If you have a website that uses, for example, the Laravel framework, you may need to set up so-called workers for managing automatic jobs with Laravel Queue or Laravel Horizon. Symfony Messenger and/or Craft CMS Worker are also supported. We have developed an extension to cPanel where you can set up these workers yourself, and this guide describes how to do it.

Access settings for workers

To access the settings for your workers, do as follows:

  1. Begin by logging on to cPanel.
  2. Click the icon Queue Workers under Advanced.
  3. You will now be able to configure up to two queue workers, for example one for your production environment, and one for staging/development.

Managing workers

Once you accessed the settings for your workers (as described above), you have the following configurable options (settings for production and for staging/development are set up in the same manner):

  • Worker number: You can have up to two workers per cPanel account. This is the identifier for them.
  • Status: Here you’ll see whether or not the worker is active.
  • Type: What type of worker you’ve set up (Laravel Horizon, Laravel Queue, Symfony Messenger, or Craft CMS Worker).
  • Application executor path: The path to, for example, the project’s artisan file.
  • Actions: Here you can Start or Stop your worker.

You can control a worker via SSH if you’d like. This is done with the following:

uapi QueueWorkers update action=start|stop|restart [worker_number=0|1]

Choose between start, stop and restart, and enter the number for your worker (0 or 1).

Was this article helpful?

Related Articles