Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ligonsker's avatar

Does Laravel 10 has a solution for configuring Queues on a Windows Server?

Hello,

I know that I should move the Laravel project to Linux, it's just not my decision right now so we're stuck with Windows Server.

Until I manage to move it to a Linux server, is there a solution for setting up a Queue system on a Windows Server, including something that would resemble Supervisor?

Thanks

0 likes
3 replies
LaryAI's avatar
Level 58

Yes, Laravel does have a solution for configuring queues on a Windows Server. You can use the Windows Task Scheduler to run the php artisan queue:work command as a background task. Here are the steps to set it up:

  1. Open the Task Scheduler by searching for it in the Start menu.
  2. Click on "Create Task" in the right-hand panel.
  3. Give the task a name and description.
  4. Go to the "Triggers" tab and click "New".
  5. Choose how often you want the task to run (e.g. every 5 minutes).
  6. Go to the "Actions" tab and click "New".
  7. Set the "Program/script" field to the path to your PHP executable (e.g. C:\php\php.exe).
  8. Set the "Add arguments" field to artisan queue:work.
  9. Set the "Start in" field to the path to your Laravel project directory (e.g. C:\inetpub\wwwroot\myproject).
  10. Click "OK" to save the task.

This will run the queue:work command as a background task at the specified interval. You can monitor the queue by running php artisan queue:listen in a separate command prompt window.

Note that this solution does not include something that would resemble Supervisor, but it should work for basic queue processing on a Windows Server.

Ligonsker's avatar

@click Yes! I think I had a confusion there. I thought I must have supervisor in order to run the queue worker. But if I understand now, I don't have to have it, and I can run the queue worker on Windows, even if I don't use the Task Scheduler, but what Lary explained is just to make sure that the worker runs all the time.

So I can just set up a queue system with the database driver normally as seen in the docs

Please or to participate in this conversation.