Gravity generates logs for each execution of a job. These logs can be helpful for:
- investigating failed executions
- viewing the statuses of past executions
- viewing the status and current stage of a recently executed job
- validating execution run times
There are two ways to view execution logs:
- The jobs page - View the details about the last execution of each job. You will see the status of the execution and, in the case of running executions, you can see the current stage. If the last job execution finished with an error, you can investigate by clicking thebutton to view the execution trace. You can also view all historical executions for a given job by clicking on the shortcutto the logs page where the relevant filters for the job are pre-applied.
click the shortcut to view all logs for the job
hover over the information icon to see the real-time stage of a running job
A job execution can have one of the following statuses:
- RUNNING - Job execution is currently running
- FINISHED - Job execution has finished successfully
- ERROR** ****** - Job execution has finished with errors
The execution trace can be accessed by clicking on the
button. This is available on both the Jobs and on the Logs page. The execution trace will provide the status of the parent and child stages. For running executions, the current stage will be displayed and updated in real time as the execution progresses.
Execution Trace - Tree View
Stage of a running execution
The following options are available to help navigate the execution trace:
- expand the JSON tree to see all of the child stages of the job
- collapse the JSON tree to hide all child stages of the job
- navigate directly to the error when the JSON tree is expanded
- -refresh the execution trace, if you are investigating a job that is running. The trace is not updated automatically as it is difficult to read changing logs.
- - rerun the job
The execution stages for a job will vary depending on the source, target and job configuration. The table below highlights some key stages of a job that is configured to load data into a database target