Skip to main content
Version: 2.0.0

Manual Triggers

A manual trigger runs a Function on demand, from the CLI or the UI. Nothing about the Function's definition needs to change to allow it: every Function can be triggered by hand, including one that already has a cron or Table trigger configured.

From the CLI

tdk fn trigger --coll <collection_name> --name <function_name>

<function_name> is the name the Function was registered under, not the name of its file.

The default for Publishers

A Publisher reads no Tabsdata Tables, so there is nothing upstream that could fire it. With no trigger_by on the decorator, a Publisher runs only when triggered manually.

Transformers and Subscribers behave differently, because they do have input Tables. Left unconfigured, they run on a commit to any of them. See Table Commit Triggers.

What a manual trigger actually starts

Triggering one Function does not run only that Function. Tabsdata builds an Execution Plan covering every downstream Function that has to run as a result, and nothing commits unless all of them succeed.

For the UI walkthrough and the full trigger_by reference, see Working with Triggers.