Issue Schedule Tasnk (Cron Job) disappear

MISHO0o

New Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.65
Hello,

i have website on wordpress on plesk, i disabled Cron job from wordpress to enable it from server side.

every time i toggle this "Create a replacement task when takeover is initiated" on it revert off again after a while (about 6 hours)
i found this issue mentioned in another post (HERE) but it should be fixed on september update, but i still have same issue.
i also do these steps and still the same.

any idea?
 
Hello, @MISHO0o. The linked thread is for an issue resulting from a backup restoration process. If I understand correctly, in your case the cron jobs disappear after ~6 hours. Do you have a scheduled backup task running at that time or the crons are disappearing without any apparent reason? Additionally, could you please confirm if all cron jobs are missing in Tools & Settings > Scheduled Tasks (Cron jobs) or only the cron jobs related to WordPress? Thank you in advance.
 
Hello @Sebahat.hadzhi

yes it's cron job and disappear within 6 hours sometimes more sometime less.
its for wordpress only and i don't have any other Scheduled tasks running or added
1731940016831.png

does restarting plesk service or repair or restarting server affect this coz i think it happens after one of these actions
 
Thank you for the update. Neither Plesk repair/restart nor server restart should be affecting this setting and removing the cron job. I tested that on server with Debian 12 and Plesk 18.0.65 and I cannot observe such behavior. I will check the server after several hours to confirm if the same thing happens on it as well and I will keep you posted.
 
@MISHO0o, I monitored the test server and I cannot observe such a behavior. Since WP Toolkit's behavior depends on the following WordPress config option:

define( 'DISABLE_WP_CRON', true );

I suspect that a user or a process is adjusting that value and consequently reflecting on the configuration of the WP Toolkit. Please double-check the wp-config.php file if the issue re-occurs so you can verify if the value is set to true or false.

I also consulted with our team and they informed me that the position of WP Toolkit's slider "Create a replacement task when takeover is initiated" slider is stored in the toolkit database:

sqlite> select * from InstanceProperties where name="wpCronTaskReplacementAllowed" and instanceId = 1;
1|wpCronTaskReplacementAllowed|

The most reasonable explanation of that behavior would be a plugin that is somehow interfering with the WordPress configuration and the cron option.
 
Back
Top