How to debug the cronJob

#1

Hi,
I’d like to know how I can debug my cronJob instance.
This is the context:

  • I have 1 instance of cronJob:
    "id" : "refresh_FS",
    "name" : "refresh_FS",
    "description" : "CronJob set every 30 seconds ",
    "action" : {
      "typeName" : "Type_RefreshJob",
      "actionName" : "scheduledStart"
    },
    "inputs" : {
      "this" : {
        "type" : "Type_RefreshJob",
        "id" : "my_id"
      }
    },
    "concurrent" : false,
    "scheduleDef" : {
      "cronExpression" : "0/30 * * * * ?",
      "skipOverdue" : true
    },
    "inactive" : true
      }
  • An instance of Type_RefreshJob:
{
    "id" : "my_id",
    "options" : {
            ...
    },
    "priority" : 300,
    "maxConcurrency" : -1,
    "maxConcurrencyPerNode" : -1
  }

  • In Type_RefreshJob.c3typ the function scheduledStart() start the job;
  • After provisioning I run this command on console:
    CronJob.make({id: "refresh_boilerLeakage_predictions_FS", inactive: false}).merge().

So, if I run c3Grid(CronQueue.countAll()) I see the cronJob switch from initial to failed.

Which is the best way to debug the cronJob?

Thank you

0 Likes

#2

Run c3QErrs(CronQueue) to see what the errors are. In 7.9 this will be greatly improved.

0 Likes