I have created a queue and also created a daemon, however on dispatching the job it is not getting fired. However, if I keep running php aritsan quueu:work --tries=3, it is starting the queue process as soon as the job is dispatched.
Did you try restarting your daemon queue and clearing your config cache php artisan config:clear?
Each time you do a new deployment you should start your queue as otherwise your queue will not pick up any code changes or any config changes.
php artisan queue:restart
From the docs:
Remember, queue workers are long-lived processes and store the booted application state in memory. As a result, they will not notice changes in your code base after they have been started. So, during your deployment process, be sure to restart your queue workers. In addition, remember that any static state created or modified by your application will not be automatically reset between jobs.
@click Actually i am using this queue to dump csv to database, and i got the error, as it is trying to find this file in example.com instead of exampledev.com, could daemon have something to do with it or what I could be doing wrong here?
@Inquisitive please try restarting your horizon and clearing your config cache as mentioned above. If you have configured something in your .env it might be related.