Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How to Set Up a Queue Worker for Laravel Applications

Laravelโ€™s queue system is a powerful tool for offloading time-consuming tasks, such as sending emails or processing data, to background processes, ensuring a seamless user experience. By configuring a queue worker, you can efficiently manage these tasks using your hosting platformโ€™s Laravel Site dashboard.

Follow this step-by-step process on how to configure a queue worker for a Laravel application from your Laravel Site dashboard. 

Step 1: Access Your Laravel Application Dashboard #

Log in to your hosting platform. Navigate to the โ€˜Laravelโ€™ section in the dashboard. Select your โ€˜Applicationโ€™ from the list of deployed Laravel applications.

Queue Worker for Laravel Applications

Step 2: Add a Queue Worker For Laravel Applications #

In the Laravel application dashboard, locate and click on โ€˜Laravel Queueโ€™. Click the โ€˜Add Queue Workerโ€™ button.
A popup form will appear with the following configuration fields:

  1. Connection: Specify the queue connection (e.g., database, redis).
  2. Queue: Define the queue name(s) to process (e.g., default or a custom queue).
  3. Maximum Seconds Per Job: Set the maximum time (in seconds) a job can run before timing out.
  4. Maximum Memory: Set the memory limit (in MB) for the queue worker process.
  5. Number of Processes: Specify the number of worker processes to run concurrently.

Adjust these settings based on your application’s requirements. Then click on the โ€˜Add Queue Workerโ€™ to create the worker process.

Queue Worker for Laravel Applications

Step 3: Manage the Queue Worker #

The process will then be added to your supervisor list and managed automatically by the Supervisor. Here, you will get more options: โ€˜Editโ€™, โ€˜Restartโ€™ to manage your process. Also, you can click on the โ€˜Deleteโ€™ button to stop and delete the process.

Queue Worker for Laravel Applications

If you want to monitor your queues visually? Check out our Laravel Horizon setup guide for step-by-step instructions on installing and configuring Horizon to manage and monitor your queues in real time.

Add Queue Restart to Deployment Script  #

To ensure that your queue workers are properly restarted after each deployment, add the following command to the Deployment Script field in your application settings:

$XCLOUD_PHP artisan horizon:terminate

This will restart the Horizon process gracefully after finishing the running tasks.

Read this official Laravel documentation for more best practices on queue worker deployment.

And that is it. This is how easily you can set up Queue Worker for Laravel applications and configure new processes, ensuring your applications run smoothly and reliably.

Still stuck? Contact our support team for any of your queries. 

What are your feelings
Updated on May 20, 2025

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00