Open JiahuiLuData opened 8 months ago
Hi @JiahuiLuData ,
Could you send this query in your database :
UPDATE cron_job SET running_instances = 0, max_instances = 10;
This will be improved in the next Myddleware version.
It should solved your problem.
That worked! Thanks!
Hi Myddleware team, The synchro ALL is not working again. I have checked the myddleware database and the cron_job looks good with the change we made according to your suggestion:
And the table cron_result has the continuous running for Synchro All like this:
However, the job table doesn't have Synchro ALL records recently. I have the log file for myddleware's crontab running, all others looked fine, just some extra warnings are thrown out during the time period: In NativeFileSessionHandler.php line 49:
Session Storage was not able to create directory "/home/default/html/myddle ware/var/cache/background/sessions".
In NativeFileSessionHandler.php line 49:
Session Storage was not able to create directory "/home/default/html/myddle ware/var/cache/background/sessions".
In NativeFileSessionHandler.php line 49:
Session Storage was not able to create directory "/home/default/html/myddle ware/var/cache/background/sessions".
In NativeFileSessionHandler.php line 49:
Session Storage was not able to create directory "/home/default/html/myddle ware/var/cache/background/sessions".
In NativeFileSessionHandler.php line 49:
Session Storage was not able to create directory "/home/default/html/myddle ware/var/cache/background/sessions".
Can you help me with the troubleshooting? Much appreciated!
Jiahui
Hi @JiahuiLuData ,
Could you give us more detail about the synchro ALL ? Is that not running at all ? Or the job run without reading data ? Or other ?
Could you also try to run the command manually by opening a terminal at the Myddleware's root directory and run this command :
php bin/conole myddleware:synchro ALL --env=background
Does it run ? If not could you give us what resut you get ? Thanks.
I have my crontab running "myddleware:synchro ALL". It didn't throw any errors out but it just not working. I exported the log file and find records like this whenever I run myddleware:synchro ALL:
// Cronjobs started at Tue, 23 Jan 2024 23:30:02 +0000
Execute cronjobs
[Info] Found 6 jobs
Running "myddleware:synchro ALL"
[Note] cronjob will not be executed. The number of maximum instances has been exceeded.
[Info] myddleware:synchro ALL : Begin 2024-01-23 11:30:03
[Info] myddleware:synchro ALL : End 2024-01-23 11:30:05
I don't know where to see the config for maximum instances. Other jobs such as rerun errors are working fine. Just synchro ALL not working. Can you help me with it?
Thanks