Jobs Download
Description
Clones a remote job to your local machine, under a new directory with the name of thejob_id.
Sample
Parameters
| Option | Description |
|---|---|
job_root | The s3_root (known as the job root) of the job to clone. Can be found in Job Details or in the URL of the hotglue job page. |
The job root is of the form: tenant_id/flows/flow_id/jobs/2025/01/1/01/01/job_id
Jobs List
Description
Lists the most recent jobs in the hotglue environment for a specific tenant/flow in chronological order.Sample
Parameters
| Option | Default | Description |
|---|---|---|
--count | 5 | Number of jobs to return. Defaults to 5. |
--tenant | ||
-u | default | Tenant Id to query jobs for. Defaults to default, the admin user. |
--env | ||
-e | Environment Id to query jobs for. |
Jobs Bulk Run
Description
Runs multiple jobs in bulk from a JSON file. The command reads a JSON file containing an array of job configurations, validates each job, checks flow versions, and runs all jobs in parallel. Results are displayed in a table format with a summary of successes and failures.Sample
jobs.json):
Parameters
| Option | Description |
|---|---|
--file -f | Required. Path to JSON file containing an array of job objects to run. Each job object must include flow and tenant fields. Additional job arguments can be included and will be passed to the body of the job trigger endpoint. |
Jobs Bulk Kill
Description
Kills multiple running jobs in bulk. The command fetches jobs from the last month with statusesJOB_CREATED, SYNC_STARTED, SYNC_SUCCESS, ETL_STARTED, ETL_SUCCESS, or EXPORT_STARTED, optionally filters them by tenant IDs and/or flow IDs, and kills all matching jobs in parallel. Results are displayed in a table format with a summary of successes and failures.
Sample
Parameters
| Option | Description |
|---|---|
--tenant-ids --tenants | Comma-separated list of tenant IDs to filter jobs by. Only jobs belonging to these tenants will be killed. If not provided, all matching jobs will be considered. |
--flow-ids | |
--flows | Comma-separated list of flow IDs to filter jobs by. Only jobs for these flows will be killed. If not provided, all matching jobs will be considered. |
--reason | Optional reason for killing the jobs. This reason will be included in the kill request for all jobs. |
Jobs Bulk Retrigger
Description
Retriggers multiple jobs in bulk from a JSON file containing job roots. The command reads a JSON file containing an array of job root strings, groups them by tenant and flow, and retriggers jobs with parallel processing across groups and sequential processing within each group. For each group, the command waits for a job to complete before retriggering the next job in that group. Results are displayed in a table format with a summary of successes and failures.Sample
jobRoots.json):
Parameters
| Option | Description |
|---|---|
--file -f | Required. Path to JSON file containing an array of job root strings to retrigger. Each job root must follow the format: {tenantId}/flows/{flowId}/jobs/.... Jobs are automatically grouped by tenant and flow, and processed sequentially within each group (waiting for completion) while groups are processed in parallel. |