Changelog¶
[0.2.4] - 2022-10-17¶
Fixed¶
- Non json artifacts are now able to be retrieved from
get_run_artifact
[0.2.3] - 2022-09-16¶
Fixed¶
- Bad url configuration for
create_job
method
[0.2.2] - 2022-09-15¶
Fixed¶
- Global CLI args
--warn-error
and--use-experimental-parser
were not being considered. If they were present in the command, the modified command would have been invalid. These are now included within themodified_command
if present in the initial step's command.
Added¶
--full-refresh
flag is now being pulled in themodified_command
if present in the initial step's command.
[0.2.1] - 2022-08-31¶
Fixed¶
- Checking for an invalid result "skip" instead of "skipped" when identifying nodes that need to be reran.
[0.2.0] - 2022-08-30¶
Added¶
- The ability to restart a job from failure. The
trigger_job
method now accepts an argumentrestart_from_failure
(defaultFalse
) that will determine whether or not the last run attempt for a job was unsuccessful - in the event it was, it will parse the steps within that job and find the nodes that it needs to rerun as well as any steps that were skipped entirely. - Additional commands to the
trigger_job
method:should_poll
- Indicate whether or not the method should poll for completion (defaultTrue
)poll_interval
- How long in between polling requests (default 10 seconds)restart_from_failure
- Described abovetrigger_on_failure_only
- Only relevant when settingrestart_from_failure
toTrue
. This has the effect, when set toTrue
, of only triggering the job when the prior invocation was not successful. Otherwise, the function will exit prior to triggering the job (defaultFalse
)
- Logging to stderr when using the
trigger_job
method (internally using therich
package that comes when installingTyper
) - Multiple tests for the
restart_from_failure
functionality
Removed¶
- The
trigger_job_and_poll
method within thecloud
property of thedbtCloudClient
class. The polling functionality is now rolled up into the singletrigger_job
method with the argumentshould_poll
(default isTrue
)
[0.1.4] - 2022-07-11¶
Added¶
get_model_by_environment
to themetadata
propertymeta
field is now available when you query columns
[0.1.3] - 2022-07-08¶
Added¶
- The metadata methods are now available via the CLI
- A
status
arg can now be used in thelist_runs
method on thecloud
property
[0.1.2] - 2022-06-30¶
Fixed¶
- The
_dbt_cloud_request
private method, which is used in the CLI, now only usestyper.echo
to return data from a request.
Changed¶
- The
trigger_job_and_poll
method now returns theRun
, represented as adict
. It will no longer raise an exception if the result of the run is cancelled or error.
[0.1.1] - 2022-05-16¶
Added¶
- The
cloud
property on thedbtCloudClient
class now contains v3 endpoints
[0.1.0] - 2022-05-13¶
Added¶
dbtCloudClient
class is the main interface to the dbt Cloud APIs. Thecloud
property contains methods that allow for programmatic access to different resources within dbt Cloud (e.g.dbtCloudClient().cloud.list_accounts()
). Themetadata
property contains methods that allow for retrieval of metadata related to a dbt Cloud job run (e.g.dbtCloudClient().metadata.get_models(job_id, run_id)
).dbtc
is a command line interface to the methods on thedbtCloudClient
class (e.g.dbtc list-accounts
)