Will I run another instance of the job if it is already running?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roman042
    Member
    • Jun 2017
    • 64

    Will I run another instance of the job if it is already running?

    Hello, tell me if another instance of the job (ScheduledJob) will be started, if it is still running?
  • tarasm
    Super Moderator
    • Mar 2014
    • 573

    #2
    After 2 hours this ScheduledJob will be marked as Failed and will run again. If the job has the running status every time after execution, this can notify about fatal error in the code. Is this your custom code?
    Job Offers and Requests

    Comment

    • roman042
      Member
      • Jun 2017
      • 64

      #3
      Yes.
      Tell me what are the recommendations for writing a job?

      Comment

      • tarasm
        Super Moderator
        • Mar 2014
        • 573

        #4
        You have to find the error. If you're using PHP 7+, the error should be stored in the log file (/data/logs/). If PHP 5, you have to run crobjob command manually via terminal.
        Job Offers and Requests

        Comment

        Working...