[In Progress] Workflow's Environment Variables
Definition
By default, every Task that runs generates a series of environment variables. These variables are invisible in the sense that you'll never see them in the platform but they can always be accessed by your scripts.
These environment variables can help your scripts be context-aware as they run, giving knowledge into the structure and placement of the Task in relation to other Tasks
original marketplace Variables = Marketplace Variables
Environment Variable Type | Variable Name | Example (these are not real) | Definition |
---|---|---|---|
Alli Client Cred S3 information: |
| something-123ab321-ct94-09p3-c74d-520e7e2c7py3 | Used to read and write files to a client’s s3 bucket: how to |
| source=app/app=something/- | ||
| source=app/app=something/temp=true/exec=913c104v-a385-30ge-9fa7-3p12owg2ef3a/ | ||
| PASHQT8HPAUNWW3LRPRA | ||
| AxUAQhO9Kj0/SNE7YNUnpElbvv0EP3U8N6N1eP817 | ||
Alli Client Cred Redshift information . How To | ALLI_DATA_REDSHIFT_URL | ||
ALLI_DATA_REDSHIFT_HOST | |||
ALLI_DATA_REDSHIFT_PORT | |||
|
| ||
ALLI_DATA_REDSHIFT_USER |
| ||
ALLI_DATA_REDSHIFT_PASSWORD |
| ||
ALLI_DATA_REDSHIFT_IAM_ROLE |
| ||
|
| ||
Alli Client Information | ALLI_CLIENT_ID | ||
ALLI_CLIENT_SLUG | |||
ALLI_CLIENT_TIMEZONE | |||
Dividing Logs. How To |
| ||
Alli OAUTH variables. How To |
| ||
| |||
Google Cloud information. How To. For Google Sheets |
| ||
| |||
Task Run Execution Details |
|
| The day of the Task start time in format 01-31. |
|
| The hour of the Task start time in format 0-23. | |
|
| The time at which the Task started running. Formatted using the RFC3339 standard. | |
|
| The minute of the Task start time in format 0-59. | |
|
| The year of the Task start time. | |
|
| The second of the Task start time in format 0-59. | |
|
| The millisecond of the Task start time in format 0-999. | |
|
| The number of seconds since the Unix epoch. | |
Workflow Run Execution Details |
|
| The year of the Task start time. |
|
| The time at which the Workflow started running. Formatted using the RFC3339 standard. | |
|
| The hour of the Workflow start time in format 0-23. | |
|
| The second of the Workflow start time in format 0-59. | |
|
| The day of the Workflow start time in format 01-31. | |
|
| The millisecond of the Workf.ow start time in format 0-999. | |
|
| The month of the Vessel start time in format 01-12. | |
|
| The time at which the Workflow started running. Formatted using the RFC3339 standard. |
[old] Shipyard Variables (needs update)
Fleet Environment Variables
When a Vessel is run as part of a Fleet, the following Environment Variables will be available. For an overview of Upstream, Currentstream, and Downstream read our Glossary of Terms.
Name | Example | Definition |
---|---|---|
|
| Set to the UUIDv4 of the Fleet that the Vessel belongs to. |
|
| Set to the name of the Fleet that the Vessel belongs to. |
|
| Set to the UUIDv4 of the current Fleet Log that is running. This ID will be constant for all Vessels in the current run. |
|
| The position of the current Vessel in the currentstream. This value is 0 based. Useful for splitting tasks into chunks dynamically and consistently. |
|
| The number of Vessels that ran upstream. |
|
| The number of Vessels running in the currentstream. |
|
| The number of Vessels that will run downstream. |
|
| A comma-separated list of Log IDs from Vessels that ran upstream. The order of the IDs will match the corresponding upstream environment variables, but may change with every run. |
|
| A comma-separated list of Log IDs from Vessels that are running in the currentstream. The order of the IDs will match the corresponding currentstream environment variables, but may change with every run. |
|
| A comma-separated list of Log IDs from Vessels that will run downstream. The order of the IDs will match the corresponding downstream environment variables, but may change with every run. |
|
| A comma-separated list of Vessel IDs from Vessels that ran upstream. The order of the IDs will match the corresponding upstream environment variables, but may change with every run. |
|
| A comma-separated list of Vessel IDs from Vessels that are running in the currentstream. The order of the IDs will match the corresponding currentstream environment variables, but may change with every run. |
|
| A comma-separated list of Vessel IDs from Vessels that will run downstream. The order of the IDs will match the corresponding downstream environment variables, but may change with every run. |
|
| The time at which the Vessel started running. Formatted using the RFC3339 standard. |
|
| The time at which the Vessel started running. Formatted using the RFC3339 standard. |
|
| The year of the Fleet start time. |
|
| The month of the Fleet start time in format 01-12. |
|
| The day of the Fleet start time in format 01-31. |
|
| The hour of the Fleet start time in format 0-23. |
|
| The minute of the Fleet start time in format 0-59. |
|
| The second of the Fleet start time in format 0-59. |
|
| The millisecond of the Fleet start time in format 0-999. |
|
| The number of seconds since the Unix epoch. |
|
| The path to the file that will be optionally created if headers are provided in the webhook invocation. |
|
| The path to the file that will be optionally created if a body is provided in the webhook invocation. |