Closed jskorlol closed 3 years ago
Hi,
I'm currently off until Thursday so I can't check your problem right now. However, honestly, I didn't understand what do you mean :) The only thing I can say, seeing your code, is that you should use the domain option even in the scheduled command, doing something like this, in order to work properly
$domain = app()->domain(); $schedule->command('cleanPdfs', ['--thread'=>'queue','--domain'=>$domain])->everyMinute()->timezone('Asia/Seoul');
Hope this helps
Cheers
Giacomo
Hi,
I close the issue as I didn't receive any feedback
Cheers
Giacomo
I run cron as an option,
The schedule reads like this:
When the command in the schedule is executed like this, Dispatch is normally registered in Job.
However, at the same time as dispatch job registration, Like dispatch_now too run, and dispatch is too run
That is, once in the queue, once in the schedule php, a total of 2 runs.
to solve this
I should have used the env option in cron, not the domain option.
I'm not sure where the problem is either, sorry.