pdg
Cook a TOP network and read its work items: check status, filter states, start or cancel cooks, and mark nodes dirty. Use for TOP networks only.
Instructions
Cook a TOP network, and read what its work items did.
Use it for a TOP network only. A TOP node does not cook like a SOP: it
makes work items, and each item runs on its own. For a SOP or a DOP, use
cook. For a ROP, use render.
mode:
"status" — the counts for each state, and whether a cook runs now.
"workitems" — the items. `state` filters, for example "failed".
"cook" — start the cook. The call comes back at once; read
"status" after it to follow the work.
"dirty" — mark the node dirty. `dirty_all` also removes the
outputs on disk.
"cancel" — stop the cook that runs now.
Returns JSON. A failed item holds the command and the log path: read those
before you change the network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | One of "status", "workitems", "cook", "dirty", "cancel". | status |
| path | Yes | The TOP network or the TOP node. | |
| state | No | workitems: keep the items in this state, for example "failed" or "cooked". | |
| dirty_all | No | dirty: also remove the outputs of the node on disk. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |