You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsl-reference.md
+17-2
Original file line number
Diff line number
Diff line change
@@ -55,12 +55,12 @@
55
55
+[HTTP Response](#http-response)
56
56
+[HTTP Request](#http-request)
57
57
+[URI Template](#uri-template)
58
+
+[Container Lifetime](#container-lifetime)
58
59
+[Process Result](#process-result)
59
60
+[AsyncAPI Server](#asyncapi-server)
60
61
+[AsyncAPI Message](#asyncapi-message)
61
62
+[AsyncAPI Subscription](#asyncapi-subscription)
62
63
63
-
64
64
## Abstract
65
65
66
66
This document provides comprehensive definitions and detailed property tables for all the concepts discussed in the Serverless Workflow DSL. It serves as a reference guide, explaining the structure, components, and configurations available within the DSL. By exploring this document, users will gain a thorough understanding of how to define, configure, and manage workflows, including task definitions, flow directives, and state transitions. This foundational knowledge will enable users to effectively utilize the DSL for orchestrating serverless functions and automating processes.
@@ -798,6 +798,7 @@ Enables the execution of external processes encapsulated within a containerized
798
798
| ports | `map` | `no` | The container's port mappings, if any |
799
799
| volumes | `map` | `no` | The container's volume mappings, if any |
800
800
| environment | `map` | `no` | A key/value mapping of the environment variables, if any, to use when running the configured process |
801
+
| lifetime | [`containerLifetime`](#container-lifetime) | `no` | An object used to configure the container's lifetime. |
801
802
802
803
###### Examples
803
804
@@ -1915,6 +1916,16 @@ This has the following limitations compared to runtime expressions:
1915
1916
uri: https://petstore.swagger.io/v2/pet/{petId}
1916
1917
```
1917
1918
1919
+
### Container Lifetime
1920
+
1921
+
Configures the lifetime of a container.
1922
+
1923
+
#### Properties
1924
+
1925
+
| Property | Type | Required | Description |
1926
+
|----------|:----:|:--------:|-------------|
1927
+
| cleanup | `string` | `yes` | The cleanup policy to use.<br>*Supported values are:<br>- `always`: the container is deleted immediately after execution.<br>-`never`: the runtime should never delete the container.<br>-`eventually`: the container is deleted after a configured amount of time after its execution.*<br>*Defaults to `never`.* |
1928
+
| after | [`duration`](#duration) | `no` | The [`duration`](#duration), if any, after which to delete the container once executed.<br>*Required if `cleanup` has been set to `eventually`, otherwise ignored.* |
1918
1929
### Process Result
1919
1930
1920
1931
Describes the result of a process.
@@ -1933,13 +1944,17 @@ Describes the result of a process.
0 commit comments