schedule

Setting up a Laravel cron job in cPanel

旧城冷巷雨未停 提交于 2021-01-03 01:31:13
问题 I have the following function: protected function schedule(Schedule $schedule) { $schedule->command('email:users')->everyMinute(); } when I run the command artisan schedule:run it sends an email but when I add the following command to the cpanel as a cron job it doesn't send any email. Cpanel suppose to email me a notification when the cron job is run but I haven't receive a single email. php /home/rain/artisan schedule:run 1>> /dev/null 2>&1 Where am I doing wrong? Also when I run the

Generate summary gantt chart from detailed activities

对着背影说爱祢 提交于 2021-01-02 04:01:50
问题 I want to create a gantt chart summary that shows a person´s whole "busy" and "free" schedule by day and in a single row, from a detailed gantt chart with a list of activities of different people in multiple rows. Basically go from this: To this: (which I created Manually) To be able to give a summary of people´s shifts free time between activities. Right now I´m just using this formula to compare the start and end date in each row and produce a "1" if the condition is True, then I just

Generate summary gantt chart from detailed activities

◇◆丶佛笑我妖孽 提交于 2021-01-02 03:58:20
问题 I want to create a gantt chart summary that shows a person´s whole "busy" and "free" schedule by day and in a single row, from a detailed gantt chart with a list of activities of different people in multiple rows. Basically go from this: To this: (which I created Manually) To be able to give a summary of people´s shifts free time between activities. Right now I´m just using this formula to compare the start and end date in each row and produce a "1" if the condition is True, then I just

Laravel task scheduler permission problem with cleanDirectory command

ⅰ亾dé卋堺 提交于 2020-12-15 04:28:29
问题 I've set up a console command with a handle() function like this: public function handle() { $fileSystem = new Filesystem; $fileSystem->cleanDirectory('storage/app/public/tmp'); } And in the console kernel I set up the command: $schedule->command('cleanupfiles:tmp') ->everyMinute() ->sendOutputTo(storage_path('logs/taskoutput.log')); The superuser's crontab has the following entry: * * * * * php /var/www/website/artisan schedule:run >> /dev/null 2>&1 I can see the task scheduler getting