v0.1.8
Added
-
Job.get_workflow()/AsyncJob.get_workflow()— fetch the workflow behind a job, including one rehydrated by id. Returns the graph and aformatdiscriminator:save— the authoring workflow at the version the job ran, with canvas layout and editor-only nodes intactapi— the executed API-format graph
Branch on
format; which shape comes back depends on how the job was submitted, not on anything the caller controls. Jobs submitted through this SDK always getapitoday. -
Asset deletion —
Asset.delete()andassets.delete(id). Thanks to @jab416171 for the implementation. -
job_idon outputs and assets — get from an output file back to the job that produced it, without a side table. Absent for uploaded assets, which have no producing job. -
expires_aton assets.
Fixed
job_idandexpires_atwere present on the wire but not exposed by the public wrapper classes, so they were unreachable without touching a private attribute. Found by end-to-end testing against Comfy Cloud and a self-hosted proxy.
Verified
End to end against Comfy Cloud staging and a self-hosted comfy-api-proxy driving a real workflow: submit, poll, job_id on outputs and standalone asset lookups, output download, and get_workflow returning the submitted graph with no extra_data.
Requirements
assets.delete() needs backend support. Comfy Cloud has it. Self-hosted needs a comfy-api-proxy new enough to serve DELETE /api/v2/assets/{id} — older proxies return 405 Method Not Allowed.