Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha 8: scheduler/crontab not working #60

Closed
alexdelprete opened this issue Oct 21, 2022 · 9 comments · Fixed by #62
Closed

Alpha 8: scheduler/crontab not working #60

alexdelprete opened this issue Oct 21, 2022 · 9 comments · Fixed by #62
Assignees
Labels
🐛 bug Something isn't working

Comments

@alexdelprete
Copy link
Contributor

I changed the cron expression from 60m to to: schedule: '*/1 * * * *' because I wanted to check if latest version tests were working, but no tests have been queued.

The results table in the db is empty.

@alexdelprete
Copy link
Contributor Author

Upgraded to Alpha 8: scheduler not working. Manual tests are ok.

@alexdelprete alexdelprete changed the title Alpha 7: no tests have been run Alpha 8: no tests have been run Oct 21, 2022
@alexdelprete alexdelprete changed the title Alpha 8: no tests have been run Alpha 8: scheduler/crontab not working Oct 21, 2022
@alexjustesen
Copy link
Owner

Can you check your data directory and if there is a laravel.log file? If there is open it up and see if you can isolate a failure. Else you can delete it and adjust the schedule to run again. I'm not having any issues with the schedule.

@alexdelprete
Copy link
Contributor Author

I only mapped a /config directory, should I map /app too in the compose file?

@alexdelprete
Copy link
Contributor Author

Ok, in the container there's a symlink, it should be in the /config dir, but I only have the .env file.

laravel.log -> /config/laravel.log

@alexdelprete
Copy link
Contributor Author

alexdelprete commented Oct 21, 2022

Where can I check if the schedule has been effectively read correctly?

It's not using crontab internally:

root@07b8b151b113:/config# crontab -l    
* * * * * webuser cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1

@alexjustesen
Copy link
Owner

Just kidding, I indeed fucked it... v0.1.0-alpha.9 coming shortly. Going to grab lunch and let it run for a little.

@alexjustesen
Copy link
Owner

if you run service cron status in CLI you'll see it's not running. Good way to test

@alexjustesen alexjustesen self-assigned this Oct 21, 2022
@alexjustesen alexjustesen added the 🐛 bug Something isn't working label Oct 21, 2022
@alexjustesen alexjustesen added this to the v0.1.0-alpha.9 milestone Oct 21, 2022
@alexdelprete
Copy link
Contributor Author

So you were having issues with the schedule too. :)

root@07b8b151b113:/config# service cron status
 * cron is not running

@alexjustesen
Copy link
Owner

So you were having issues with the schedule too. :)

Yeah... I didn't realize I was looking at my development environment. I thought I had the built image running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants