Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Cron job running sporadically

  1. #21
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Cron job running sporadically

    yeah, I was also thinking that the 6 AM script running too long could interfere with the 1PM script starting - but shouldn't cron throw an error then ? (IIRC Ubuntu server drops those in the root mailbox)


    Hunch: the 6PM script sets a lock on certain resources (eg files, or maybe database tables), the 1 PM jobs fails because the resources are still in use and it can not access them; by the next day the locks are released or have timed out so the 6AM job starts again just fine.
    The timings from the COg's wrapper should indicate whether this is the case. ...

  2. #22
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cron job running sporadically

    Thanks, everyone, for your suggestions. I want to be as systematic as I can about this. Unfortunately, things have gotten a bit busy for me, so I haven't had a chance to properly isolate the problem yet.

  3. #23
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cron job running sporadically

    Right now I have it set to run once a day in the morning, and it seems to be good, so I may just stick with that for now.

  4. #24
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Cron job running sporadically

    Does the job write a log? How long does it take to complete?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #25
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cron job running sporadically

    It just send a PHP email. Takes less than a second to complete.

  6. #26
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Cron job running sporadically

    Then it's still puzzling why you seemingly cannot run another instance of the job six hours later.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #27
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cron job running sporadically

    I know. Haven't had the time to devote to this to properly diagnose the issue yet.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •