Worker types
Configuration
Built-in and managed workers are configured under theworkers key:
Older docs and configs may use “module” for built-in workers. In current iii, “worker” is the canonical term.
Built-in Workers
How Workers Work
A Worker has two responsibilities:-
Register trigger types: A Worker can introduce new ways to invoke Functions. For example, the HTTP worker registers the
httptrigger type, and the Cron worker registers thecrontrigger type. -
Supply Context: A Worker can add capabilities to the Context object that gets passed to every Function. For example, the State worker adds
state::get,state::set, and other state operations.
config.yaml (the engine default). Use -c iii-config.yaml to specify a custom path:
You can build your own Workers to integrate any service or infrastructure. See Custom Workers for a detailed guide.