Skip to main content

duckstring control

Commands that act directly on a Pond's execution, outside the demand model. See Failures and Control for the concepts.

Every command takes -c / --catchment; see CLI Overview.

Choosing Ponds​

Every command except failure-budget and reset-contract acts on any number of Ponds, which is the command-line equivalent of Options → Pond Actions in the web UI. Name each Pond as name (its highest deployed major) or name@major, and widen the selection with:

OptionAdds
--allEvery Pond in the Catchment.
--treeEvery Pond connected to the ones named, upstream or downstream.
--betweenEvery Pond on a path between the ones named.
--downstreamEverything downstream of the ones named.

With a single Pond, -m / --major and -v / --version pick its major line, as elsewhere.

duckstring control kill reports
duckstring control rebuild --all
duckstring control sleep transactions products

Running​

wake​

duckstring control wake POND... [--silent | --watch | --wait [--timeout D] | --view]

Runs each Pond once if its Sources already have newer data, without asking them to run. Clears a failed or killed state first. With one Pond, it follows the request as described in Following a request; --wait waits for each Pond named.

force​

duckstring control force POND... [--silent | --watch | --wait [--timeout D] | --view]

Reruns each Pond now at its current freshness, even with no upstream change, for example after deploying a fix. Freshness doesn't change, so Ponds downstream don't rerun because of it. Clears a failed or killed state first. Follows the request as wake does.

rebuild​

duckstring control rebuild POND... [--clear] [--wait [--timeout D]]

Marks each Pond so its next run rebuilds from scratch: its working database is dropped and every Source is read in full. Trickles restart their change history, so Ponds downstream also read them in full on their next run. Nothing runs immediately; the rebuild happens whenever the Pond next runs. --clear removes a pending mark. --wait waits until that run has finished and exits with its outcome (Following a request).

repair​

duckstring control repair POND... [--downstream]

Rebuilds a set of Ponds now, in dependency order, each reading its parents' rebuilt output. The set must be connected: if two selected Ponds are linked through a third, the third must be selected too (--between adds it). --downstream adds everything downstream of the selection. While repairing, the Ponds don't respond to other demand. One repair runs at a time; if a step fails, running repair again runs the failed steps again.

Stopping​

sleep​

duckstring control sleep POND... [--upstream]

Clears each Pond's demand and removes its recurring Refreshes. Runs already in progress finish. --upstream also sleeps every Pond upstream of each.

kill​

duckstring control kill POND...

Stops each Pond's Duck immediately, abandoning its current run, and holds the Pond in a killed state. A killed Pond doesn't run or retry until it's woken, forced or cleared.

Failures​

clear​

duckstring control clear POND...

Resets each failed or killed Pond without running it, and unblocks the Ponds downstream of it.

failure-budget​

duckstring control failure-budget POND [--immediate N] [--on-change N]

Shows the Pond's retry budgets, or sets them. These values replace the ones from pond.toml and persist across redeploys.

It also works on a Spout, addressed as {pond}#{spout}. A Spout retries a failed delivery on its Pond's next 3 publishes by default; --on-change changes that number.

OptionDescription
--immediate, -iHow many times a failed Ripple is retried within the same Pond Run.
--on-change, -oHow many times a failed Pond Run is retried when a Source next updates.

reset-contract​

duckstring control reset-contract POND [--yes]

Forgets the output schema recorded for the Pond's major line, so the next successful run records it again, and clears the failure. Use it when a run failed for narrowing a column's type and you intend to accept the change within the same major version. Ponds downstream may depend on the old schema, so it asks for confirmation.

Resetting​

reset​

duckstring control reset POND... [--clear-history] [--yes]

Returns each Pond to its freshly deployed state: deletes its published data, working database and run ledger, and resets its freshness. Keeps its code, configuration and demand, so it rebuilds from scratch the next time it runs. The Ponds must be idle.

OptionDescription
--clear-historyAlso delete the Pond's run history.
--yes, -ySkip the confirmation.

wipe​

duckstring control wipe POND... [--confirm NAME]

Deletes each Pond's run history, leaving its data alone. It can't be undone, so it asks for the Catchment's name, or takes it from --confirm in scripts.