Python SDK v1.2.0
Added
- (Workflows)
start_task()andrun_task()accept a keyword-onlyidempotency_key, which makes starting a run safe to retry: repeating a call with the same key within 24 hours returns the run the first call started - (Workflows)
ctx.metadataexposestask_run_id,root_task_run_idandparent_task_run_idfor the running task. The IDs come from the task's initial input, so reading them does not make a network request; each isNonewhen unavailable - (Sandboxes) Snapshot names:
snapshots.create()acceptsname,sandboxes.create()acceptssnapshot_nameto start from the snapshot that name resolves to, andSnapshotexposesname. Passing bothsnapshot_idandsnapshot_nameraisesValueError
Changed
- Regenerated the REST client from the latest OpenAPI schema: blueprint creation,
include_previewswhen listing build sources, and allowed domains on sandbox network policies.Deployno longer has abuild_idfield
Full Changelog: python/v1.1.0...python/v1.2.0