Ad
Scheduling Tasks In Laravel
I'm building an application on Laravel 5.7
where I'm having a cron job to run following commands:
$schedule->command('telescope:clear')->timezone('Asia/Kolkata')->dailyAt('24:00');
$schedule->command('backup:clean')->timezone('Asia/Kolkata')->dailyAt('01:00');
$schedule->command('backup:run')->timezone('Asia/Kolkata')->dailyAt('01:30');
But this continously throws an exception which I found out in telescope:
Also the location states:
I don't know what is the mistake I'm doing I want to run command in midnight and then do a backup after one hour of clearing telescope entries. Help me out with this. Thanks.
Ad
Answer
There's no such time as 24:00
. Use 00:00
instead.
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS - Conditionally Load a Different Page
- → Make a Laravel collection into angular array (octobercms)
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
- → Validating fileupload(image Dimensions) in Backend Octobercms
- → OctoberCMS Fileupload completely destroys my backend
- → How do I call the value from another backed page form and use it on a component in OctoberCms
Ad