Skip to content

Commit

Permalink
Merge pull request #95 from dpguthrie/fix/remove-job-type
Browse files Browse the repository at this point in the history
Remove job_type field before cloning
  • Loading branch information
dpguthrie authored Aug 9, 2023
2 parents 9d7f9d9 + 8383d42 commit a1d3978
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [0.5.3] - 2023-08-09
- Remove read-only field `job_type` from job payload before cloning job

## [0.5.2] - 2023-07-30

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion dbtc/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.5.2'
__version__ = '0.5.3'
2 changes: 1 addition & 1 deletion dbtc/client/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ def trigger_autoscaling_ci_job(
current_job = self.get_job(account_id, job_id).get('data', {})

# Alter the current job definition so it can be cloned
read_only_fields = ['is_deferrable', 'raw_dbt_version']
read_only_fields = ['is_deferrable', 'raw_dbt_version', 'job_type']
for read_only_field in read_only_fields:
current_job.pop(read_only_field)
current_job['id'] = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dbtc"
version = "0.5.2"
version = "0.5.3"
description = "An unaffiliated python wrapper for dbt Cloud APIs"
authors = ["Doug Guthrie <douglas.p.guthrie@gmail.com>"]
documentation = "https://dbtc.dpguthrie.com"
Expand Down

0 comments on commit a1d3978

Please sign in to comment.