Cross task execution
A common pattern in compose apps is to trigger tasks from other tasks. This can be done either by creating an HTTP trigger and calling it with fetch(), or by usingcallTask(). Typically youβll want to use callTask().
callTask invokes another task in the same compose app. It awaits the invoked taskβs main() function and resolves with its return value. If the invoked task throws, the error is re-thrown in the caller.
taskNameβ thenameof a task declared incompose.yaml.argsβ a JSON-serializable payload passed to the invoked taskβsmain()as its payload argument.retryConfigβ optional. Overrides the invoked taskβs retry settings for this call.
Basic Example
Examples
Call task in a loop
Next Steps
Task Triggers
Trigger tasks from cron, the CLI and via HTTP
Using Packages
You can use any sandbox compatible typescript packages with any package manager.