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.