Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: isort
stages: [commit,push]
name: isort
entry: poetry run isort -rc
entry: poetry run isort
language: system
types: [python]
- id: black
Expand Down
16 changes: 16 additions & 0 deletions dbtc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,20 @@ def trigger_job(
'job.'
),
),
mode: str = typer.Option(
'standard',
help=(
'Possible values are ["standard", "restart_from_failure", "autoscale"] '
'standard: runs existing job as-is '
'restart_from_failure: determine whether the last run of the target job '
' exited with an error. If yes, restart from the point of failure '
'autoscale: determine with the target job is currently running '
' If yes, create and then run the clone.'
),
),
autoscale_delete_post_run: bool = typer.Option(
True, help=('Delete job created via autoscaling after it finishes running')
),
):
"""Trigger job to run."""
_dbt_cloud_request(
Expand All @@ -1007,6 +1021,8 @@ def trigger_job(
poll_interval=poll_interval,
restart_from_failure=restart_from_failure,
trigger_on_failure_only=trigger_on_failure_only,
mode=mode,
autoscale_delete_post_run=autoscale_delete_post_run,
)


Expand Down
Loading