Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 974 Bytes

CODE.md

File metadata and controls

28 lines (19 loc) · 974 Bytes

Code Step

Handlers are intended as a convenient way to write steps without having to build and publish images.

A handler is defined as:

  • Code to run.
  • A runtime to build and execute the code. E.g. golang1-17, java16, python3-9 or node16:

Inline

When a step starts, the code will be written to a file, and the file compiled and executed.

code:
  source: |
    def handler(msg, context):
      return msg
  runtime: python3-9

Examples: