CronJon not been kicked

#1

I’ve a cron job which is supposed to kick every hour ("cronExpression": "0 0 * ? * * *").
I can manually call the logic that this cron job should call but the cronjob itself is not been automatically launched at all!

Furthermore, when looking in splunk for logs with same Type and action that should be invoked by the cron job I see only logs for my manual launch !

Here’s the definition of the cron job

{
    "description": "Cron Job to trigger facilities efficiency score update every hour for the last our",
    "action": {
        "actionName": "refreshScoring",
        "typeName": "FacilityEfficiencyScoringJob"
    },
    "inactive": false,
    "concurrent": false,
    "scheduleDef": {
        "cronExpression": "0 0 * ? * * *",
        "skipOverdue": true
    },
    "inputs": {
        "jobTypeName": "FacilityEfficiencyScoringJob",
        "filter": "facilityType!='Room'",
        "startObj": {
            "type": {
                "name": "Json"
            },
            "value": {
                "referenceConfig": [
                    "start",
                    "hour"
                ],
                "direction": "before",
                "number": 7,
                "unit": "DAY"
            }
        },
        "endObj": {
            "type": {
                "name": "Json"
            },
            "value": {
                "referenceConfig": [
                    "start",
                    "hour"
                ]
            }
        },
        "interval": "DAY",
        "scoringFields": {
            "type": {
                "name": "Json"
            },
            "value": {
                "ElectricityEfficiency"  : "electricity",
                "ChilledWaterEfficiency" : "chilledwater",
                "HotWaterEfficiency"     : "hotwater",
                "NaturalGasEfficiency"   : "naturalgas"
            }
        }
    },
    "id": "trigger-for-facility-efficiency-scoring-hour",
    "name": "Facility efficiency score update CronJob at Day interval"
}

Any reasons why this CronJob not launching?

0 Likes

#2

@bachr Is this deployed somewhere I can investigate? Url (canonical + tenant/tag if possible)?

0 Likes

#3

with the help of @trothwein we found errors when the cron job tries to call the action in c3QErrs(CronQueue).

0 Likes

closed #4
0 Likes

Cron Jobs not Firing