Knowledgebase

Setting Up Multiple Cron Jobs Print

  • cronjobsscheduledtasks, cron, migration, troubleshooting, guide, howto, solution, zillionkinghost
  • 0

Managing several.

WHAT TO AVOID

Scheduling everything at the same time.

Several heavy jobs running simultaneously spikes resource use.

HOW TO STAGGER THEM

Offset the minutes. One at five past, one at twenty past, one at thirty-five past.

DOCUMENTING THEM

What each does, why it exists, what depends on it.

With several, you will not remember.

WHAT TO REVIEW

Jobs for applications you removed Jobs duplicated during a migration Jobs running far more often than needed

THE DUPLICATE PROBLEM

After a migration, jobs are frequently recreated without the old ones being removed.

Check the list.

WHAT SIGNS TO WATCH FOR

Resource usage spiking at regular intervals Disk filling with output The same task running twice

FOR MANY JOBS

Consider whether one job calling a script that decides what to run is simpler.

That is what application schedulers do.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot