Managing Existing Jobs¶
Whether it’s for maintenance or general enhancements, you can manage and edit Jobs and Tasks, provided that the Job is not currently running.
Editing a Job¶
In the sidebar, go to Jobs and then either All Jobs or Drafts.
Hover over the Job you wish to edit and from the menu choose Edit Job.
The Job Preview opens.
You may now:
Delete a task by hovering over it and choosing
Change the task script by hovering over it, choosing , and dragging a new SQL or Python script
Rename Job
Rename tasks
Add or edit task description
Editing SQL Tasks Using the Workbench¶
In the sidebar, go to Workbench.
On the right side of the ribbon, select Download.
The SQL Catalogue window opens.
Select the script you wish to edit by either typing in the script name in the File Name box or select the script from the script menu.
Select Open.
The SQL script is displayed in the Workbench.
Edit the script.
On the right side of the ribbon, select Upload.
The SQL Catalogue window opens.
Name the script you wish to save by either typing in the script name in the Save As box or select the script from the script menu.
Utilizing Existing Jobs¶
You have the option to utilize other users’ Jobs to optimize your time and effort. This is done by duplicating existing Jobs and using the duplication as the grounds to build upon your own Job.
In the sidebar, go to Jobs > All Jobs.
Hover over the Job you wish to utilize and from the menu choose Duplicate Job.
The duplication is automatically saved to the Drafts tab under the same name as the original Job with an addition of a time-stamp.
Importing and Exporting Jobs¶
The import and export capability for existing Jobs between BLUE clusters or BLUE environments empowers you to transfer them without the need for recreating the Job’s execution tree. Please be aware that in addition to importing and exporting a Job, you need to verify that the required Task scripts and DDLs exist in the target BLUE cluster or Environment.
Jobs are exported and imported in JSON format.
Importing
In the sidebar, go to Jobs.
Select Import Job.
Your local directory and file dialog opens.
Select the Job you wish to import into your cluster.
The Job has been successfully imported and appears under Jobs > Drafts.
Exporting
In the sidebar, go to Jobs > All Jobs.
Hover over the Job you wish to export and from the menu choose Export Job.
Your local folder and file dialog opens.
Select a directory where you want to save the job.
The Job has been successfully exported to a local directory.
Changing Job Ownership¶
In the sidebar, go to Jobs > All Jobs.
Hover over the Job which ownership you wish to change and from the menu choose Change Job Owner.
The Change job owner window opens.
In the search box, type the name or email of the user you want to grant ownership to and select Change.
The new owner is granted Job ownership privileges while you are remained with shared Job privileges.
Terminating a Running Job¶
Please be aware that once successfully executed before you stopped the Job, DML statements have already made the changes to the tables and database.
In the sidebar, go to Jobs > All Jobs.
Hover over the Job you wish to stop and select .
The Job is stopped and assigned a Failed status.
Deleting Jobs¶
You may only delete Jobs owned by you.
In the sidebar, go to Jobs and then either All Jobs or Drafts.
Hover over the Job you wish to delete and from the menu choose Delete.