cPanel & WHM Version 98 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Ability to put cron job(s) on hold

miragemike shared this idea 8 years ago
Open Discussion

It would be very helpful to be able to put a cron job or jobs on hold for a period of time instead of removing them and having to set them up again when needed.

Replies (5)

photo
1

just edit crontab and put a # at the start of the line you want to keep? it's worked for me for years

photo
1

Could you please further clarify your feature request?


Initially, based on your terminology, I thought you were asking for a means to suspend actively running processes that were spawned from cron schedules. Among the technical complications of attempting to match appropriate processes to cron-spawned, it's an alarmingly dangerous prospect to attempt to "suspend" a process without knowing how it works and what effects it would have on the data it's working with.


However, your last sentence seems to focus on merely the ability to disable/enable individual cron schedules. Is that the case?


Essentially, I am confused on specifically what functionality you're inquiring about. Could you clarify?

photo
1

Yes just disable/re-enable the jobs from the cron interface inside cpanel, to stop them running at their scheduled time. At the moment the only choice is to note down the times and command and delete the cron entry.

photo
1

What I do is change the month it runs to a months away from current one.

photo
1

I am doing a migration of a massive site between two servers and would be good to turn of the crons during migration for example.

Leave a Comment
 
Attach a file