Apolo
HomeConsoleGitHub
  • Apolo concepts
  • CLI Reference
  • Examples/Use Cases
  • Flow CLI
  • Actions Reference
  • Apolo Extras CLI
  • Python SDK
  • Workflows
  • Workflow syntax
    • Expression syntax
    • Live workflow syntax
      • Live contexts
    • Batch workflow syntax
      • Batch contexts
      • Batch workflow commands
    • Project configuration syntax
    • Actions syntax
      • Actions contexts
  • CLI reference
  • Expression functions
  • Mixins
  • Modules
Powered by GitBook
On this page
  • Live module call
  • Batch module call

Was this helpful?

Modules

PreviousMixins

Last updated 1 year ago

Was this helpful?

Modules are simillar to , but have the following differences:

  • Only local files (ws: scheme) are supported. Modules located on GitHub are forbidden.

  • Module content has access to global workflow defaults. The default env/volumes/preset is inherited and expressions can access top-level contexts such as flow.

Calling a module is similar to calling an action, except the module property is used instead of the action property.

Live module call

jobs:
  test:
    module: ws:live-module
    args:
      arg1: val 1

Batch module call

tasks:
  - id: test
    module: ws:batch-module
    args:
      arg1: val 1
actions