Skip to content

v0.1.8

Choose a tag to compare

@wei-hai wei-hai released this 13 Aug 19:36
· 59 commits to main since this release
Immutable release. Only release title and notes can be modified.
86839a0

Added

  • Job.get_workflow() / AsyncJob.get_workflow() — fetch the workflow behind a job, including one rehydrated by id. Returns the graph and a format discriminator:

    • save — the authoring workflow at the version the job ran, with canvas layout and editor-only nodes intact
    • api — 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 get api today.

  • Asset deletionAsset.delete() and assets.delete(id). Thanks to @jab416171 for the implementation.

  • job_id on 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_at on assets.

Fixed

  • job_id and expires_at were 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.