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

schedule task not running #173

Closed
ankit-aresourcepool opened this issue Jul 25, 2019 · 8 comments
Closed

schedule task not running #173

ankit-aresourcepool opened this issue Jul 25, 2019 · 8 comments
Labels

Comments

@ankit-aresourcepool
Copy link

ankit-aresourcepool commented Jul 25, 2019

Hello
i am working on laravel 5.6 and i am using totem "studio/laravel-totem": "v3.3.1". the issue is totem task is not firing. i have checked with every minute schedlue task and between but no luck.
and all my kerrnal task is running

please help me i need this is working urgently
Screenshot from 2019-07-25 16-17-17

@ManojKiranA
Copy link

have you added the php artisan schedule:run >> /dev/null 2>&1 inside the cron entry of the server

@ankit-aresourcepool
Copy link
Author

ankit-aresourcepool commented Jul 30, 2019

yes
the main issue was i need to clear cache than scheduler working.
this was not working on local server but now i have checked it on live and its working.
i have one more query :- in my console command i am hitting third party api and these api with thousand of pages. so my script running continuously many days. so i want these script stop in 9 am morning and again start in 9 pm .
so how can i give option to stop running script from admin account

can you please help me
can i do this with totem?
thanks

@michalper
Copy link

I've got the same problem. Added schedule:run to crontab. But totem cannot find any tasks and returns only:
php artisan schedule:list
No Scheduled Commands Found

I've created new project on fresh Laravel 5.8.*

@ankit-aresourcepool
Copy link
Author

I've got the same problem. Added schedule:run to crontab. But totem cannot find any tasks and returns only:
php artisan schedule:list No Scheduled Commands Found

I've created new project on fresh Laravel 5.8.*

i got the solution. please run php artisan cache:clear and after that totem find the task and will work fine

@michalper
Copy link

michalper commented Aug 27, 2019

@ankit-aresourcepool

MacBook-Pro-Peru:totem michalper$ php artisan cache:clear
Application cache cleared!
MacBook-Pro-Peru:totem michalper$ php artisan schedule:list
No Scheduled Commands Found

My totem list:
Zrzut ekranu 2019-08-27 o 10 48 49

Do I need any special configuration in my .env or config files?

@michalper
Copy link

@ankit-aresourcepool

When I defined my own TOTEM_DATABASE_CONNECTION in .env php artisan schedule:list didn't read task definitions from database. Totem Web UI worked properly.

But when I used default database connection, then schedule:list found tasks!

Thanks for help :)

@b-roberts
Copy link
Contributor

I had this issue and it was related to how the ConsoleServiceProvider was getting loaded, or rather not getting loaded. The check that is in place to ensure the database is setup doesn't handle non-standard configurations well.
See #198

@stale
Copy link

stale bot commented May 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 31, 2020
@stale stale bot closed this as completed Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants