We need a file watcher job to send an email alert if the file doesn't show up within a certain amount of time (say 30 minutes), and the job needs to fail if the fie is not found within the alotted time. Below is a JIL definition of the jobs current setup
insert_job: TST_FW_ALERT_FAIL_JOB job_type: FW machine: localhostowner: autosyspermission: date_conditions: 1days_of_week: allstart_times: "13:00"description: "filewatcher for test"min_run_alarm: 1max_run_alarm: 30alarm_if_fail: 1alarm_if_terminated: 1send_notification: Fnotification_template: "emailtest"must_start_times: "13:01"watch_file: "/tmp/*TESTING*.csv"watch_interval: 5notification_emailaddress: email_address1notification_emailaddress: email_address2notification_alarm_types: JOBFAILUREnotification_alarm_types: MAXRUNALARMnotification_alarm_types: MINRUNALARMnotification_alarm_types: MUST_COMPLETE_ALARMnotification_alarm_types: MUST_START_ALARM
Add the term_run_time attribute to the job.
insert_job: TST_FW_ALERT_FAIL_JOB job_type: FW machine: localhostowner: autosyspermission: date_conditions: 1days_of_week: allstart_times: "13:00"description: "filewatcher for test"min_run_alarm: 1max_run_alarm: 30alarm_if_fail: 1alarm_if_terminated: 1send_notification: Fnotification_template: "emailtest"must_start_times: "13:01"watch_file: "/tmp/*TESTING*.csv"watch_interval: 5term_run_time: 30notification_emailaddress: email_address1notification_emailaddress: email_address2notification_alarm_types: JOBFAILUREnotification_alarm_types: MAXRUNALARMnotification_alarm_types: MINRUNALARMnotification_alarm_types: MUST_COMPLETE_ALARMnotification_alarm_types: MUST_START_ALARM