Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Prevent cron job from running every minute?

Discussion in 'General Discussion' started by DennisMidjord, Apr 25, 2018.

  1. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    129
    Likes Received:
    8
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Hi,

    Is there any way to prevent users to configure cron jobs that should run every minute?
    We have a fair share of clients who configure almost every cron job to be run every minute, and some of these are very resource-demanding (and some of them doing many mysql queries).

    This results in a high load.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,819
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @DennisMidjord

    There is no native way through cPanel to do this, you can disable the crontab for users though by going to WHM>>Packages>>Feature Manager>>Edit Feature List and deselecting Cron Jobs for users using the specific featurelist.

    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    129
    Likes Received:
    8
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Thanks, Lauren.
    I can see that there's a feature request open for something similar: Cron limits
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,819
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @DennisMidjord

    Yes, and if you'd like to see that available as a feature I would encourage you to vote for it! I'm sorry I didn't point that out to begin with.


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice