How to Find What Triggered a Job?

Problem

How to find what conditions/actions triggered a specific Datameer job?

 

Solution

Run the following SQL statement against DAP database

select * from dap_job_execution where id=<job_execution_id>;

Look at the value for triggered_by column

0 = Manually run by a user
1 = Executed by the Scheduler
2 = Triggered via a REST API call
3 = Triggered by an Import job
5 = Triggered by a Workbook