Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Trigger Type in Job History Details

AS5278
Regular Contributor II
Regular Contributor II

Hi All,

We can see different values for 'Trigger Type' column in the job history detail for any job.

Values are: system, user, GRAILS_JOB, MANUAL_TRIGGER.

 

AS5278_1-1721822986446.png

I understand the trigger type 'system' and 'user'.

1). Trigger type 'system' means the job ran automatically based on schedule.

2). Trigger type 'user' means that a user manually ran the job trigger.

But what does the other two mean?. What does trigger type 'GRAILS_JOB' and 'MANUAL_TRIGGER' mean in job history detail page?.

Please advice.

Thanks.

xurde
3 REPLIES 3

Raghu
All-Star
All-Star

@AS5278  check below table you will get better idea of those

ecmimportjob ,

 

or excute below query in analytics you will get idea jobs

 

select
  a.ANALYTICSNAME,
  a.CREATEDATE 'Created On',
  a.LASTRUN 'Report previous Run',
  qt.TRIGGER_NAME 'Job Name',
  qct.CRON_EXPRESSION,
  FROM_UNIXTIME(qt.NEXT_FIRE_TIME/1000) 'Job next fire time',
  FROM_UNIXTIME(qt.PREV_FIRE_TIME/1000) 'Job previous fire time',
  case
    when FROM_UNIXTIME(qt.Next_FIRE_TIME/1000) > now()=1 and date(FROM_UNIXTIME(qt.Next_FIRE_TIME/1000))=date(now()) then 'Yet to run'
    when date(a.lastrun)=date(FROM_UNIXTIME(qt.PREV_FIRE_TIME/1000)) and date(FROM_UNIXTIME(qt.PREV_FIRE_TIME/1000))=date(now()) then 'Report ran successful as scheduled'
    when date(a.lastrun)!=date(FROM_UNIXTIME(qt.PREV_FIRE_TIME/1000)) and date(FROM_UNIXTIME(qt.PREV_FIRE_TIME/1000))=date(now()) then 'Report run mismatch'
  end as 'Report run status',
  a.METADATA 'Run summary details'
from
  analyticsconfiges a, qrtz_triggers qt, qrtz_cron_triggers qct
where
  qt.TRIGGER_NAME=concat('Analytics_',a.ANALYTICSKEY,'CRONE')
  and qt.TRIGGER_NAME=qct.TRIGGER_NAME

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

dgandhi
All-Star
All-Star

Normally have seen trigger type value of system and user.

Can you confirm the query that is used to fetch above output?

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

rushikeshvartak
All-Star
All-Star

 

  • GRAILS_JOB: Triggered by internal processes or routines within the Grails framework.
  • MANUAL_TRIGGER: Triggered manually through scripts, API calls, or other non-UI methods.

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.