Job failed in CRON run (7.5)

I added a job to the scheduler which runs every day at 3am.
I tested the job without the scheduler and it works without any problems.
I also configured cron correctly, it starts every day at 3am.
But it never did anything and in the sugar log every day at exactly 3am I can find this:
Job ec328077-2b64-1527-301c-559dc9c02252 (autoImportAccounts) failed in CRON run
Where is the problem?
Parents Reply Children
  • Hi,

    There is a return true; at the end.
    And the job should have a duration of 20 minutes but the log is already at 3am.
    There are no other logs arround this time.
    Only at 5am I always have this one:
    [ERROR] [SessionLock] Session lock was held for 6 seconds which is longer than the maximum of 1 seconds. Request details: 
                    SERVER_NAME     |                   SERVER_ADDR     |                   SCRIPT_FILENAME | cron.php                  REQUEST_METHOD  |                   SCRIPT_NAME     | cron.php                  REQUEST_URI     |                   QUERY_STRING    |   Could this cause the problem?
  • Hello


    Do you try to empty job_quoe table on the database or use the scheduler task for that more frequently?

    If you have other task on scheduler of them could block your server if ther execute at the same time. Try to expand the execution period of each one. If you task take 20 to finish, it could freeze other task that execute at the same time.

    Thanks