Breadcrumbs

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

NOTE: There are actually a lot more environment variables than listed below. To see all of them, you will need to run commands inside the workflow’s tasks to print out all the environment variables.


original marketplace Variables = Marketplace Variables


Environment Variable Type

Variable Name

Example (these are not real)

Definition

Alli Environment

ALLI_ENVIRONMENT

prod

Staging or Production (or otherwise)

Alli Client Cred S3 information:

ALLI_S3_BUCKET

something-123ab321-ct94-09p3-c74d-520e7e2c7py3

Used to read and write files to a client’s s3 bucket: how to

ALLI_S3_KEY_PREFIX

source=app/app=something/-

ALLI_S3_KEY_TEMP_PREFIX

source=app/app=something/temp=true/exec=913c104v-a385-30ge-9fa7-3p12owg2ef3a/

AWS_ACCESS_KEY_ID

PASHQT8HPAUNWW3LRPRA

AWS_SECRET_ACCESS_KEY

AxUAQhO9Kj0/SNE7YNUnpElbvv0EP3U8N6N1eP817

AWS_SESSION_TOKEN



AWS_DEFAULT_REGION

us-east-1


AWS_REGION

us-east-1


Alli Client Cred Redshift information . How To

ALLI_DATA_REDSHIFT_URL



ALLI_DATA_REDSHIFT_HOST



ALLI_DATA_REDSHIFT_PORT



ALLI_DATA_REDSHIFT_DATABASE

datawarehouse


ALLI_DATA_REDSHIFT_USER

alliclient_acme_ijpm


ALLI_DATA_REDSHIFT_PASSWORD

|_;9OI1`2=,nq12xP&Me”PWCW:N,Xv{WO


ALLI_DATA_REDSHIFT_IAM_ROLE

arn:aws:iam::123456789101:role/datawarehouse-staging-client-creds@PMG,arn:aws:iam::1234567891011:role/alliprod_123ab456-ib78-91z9-q12b-123e3m9r55f3_forklift


ALLI_DATA_REDSHIFT_KMS_KEY_ID

3p9d871e-123a-4bc5-6def7-8hi910jkl11m


Alli Client Information

ALLI_CLIENT_ID

009bd817-da02-49c0-b31a-860e4a8c5eh3


ALLI_CLIENT_SLUG

playground


ALLI_CLIENT_TIMEZONE

America/Chicago


Dividing Logs. How To

LOG_BREAK

-


Alli OAUTH variables. How To

ALLI_OAUTH_TOKEN



ALLI_OAUTH_TOKEN_TYPE

Bearer


Google Cloud information. How To. For Google Sheets

ALLI_GOOGLE_CLOUD_CREDENTIALS



ALLI_GOOGLE_CLOUD_PROJECT



ALLI_GOOGLE_CLOUD_BIGQUERY_LOCATION

US


Task Run Execution Details

MARKETPLACE_TASKRUN_START_TIME_DAY

08

The day of the Task start time in format 01-31.

MARKETPLACE_TASKRUN_START_TIME_HOUR

19

The hour of the Task start time in format 0-23.

MARKETPLACE_TASKRUN_SCHEDULED_TIME

2025-05-08T19:31:22Z

The time at which the Task started running. Formatted using the RFC3339 standard.

MARKETPLACE_TASKRUN_START_TIME_MINUTE

31

The minute of the Task start time in format 0-59.

MARKETPLACE_TASKRUN_START_TIME_YEAR

2025

The year of the Task start time.

MARKETPLACE_TASKRUN_START_TIME_SECOND

29

The second of the Task start time in format 0-59.

MARKETPLACE_TASKRUN_START_TIME_MILLISECOND=892

892

The millisecond of the Task start time in format 0-999.

MARKETPLACE_TASKRUN_START_TIME_EPOCH

1670443778

The number of seconds since the Unix epoch.

MARKETPLACE_TASKRUN_ID
*Also known as MARKETPLACE_EXEC_ID

4ce69078-2385-463b-9a6b-73fbf8b213de

The ID of the specific task run instance within the workflow,

MARKETPLACE_TASK_NAME

Execute Bash Script 574

the name of the task running

MARKETPLACE_TASKRUN_WORKDIR

/home/marketplace


Workflow Run Execution Details

MARKETPLACE_WORKFLOWRUN_START_TIME_YEAR

2025

The year of the Task start time.

MARKETPLACE_WORKFLOWRUN_START_TIME

2025-05-08T19:31:29Z

The time at which the Workflow started running. Formatted using the RFC3339 standard.

MARKETPLACE_WORKFLOWRUN_START_TIME_HOUR

19

The hour of the Workflow start time in format 0-23.

MARKETPLACE_WORKFLOWRUN_START_TIME_SECOND

29

The second of the Workflow start time in format 0-59.

MARKETPLACE_WORKFLOWRUN_START_TIME_DAY

08

The day of the Workflow start time in format 01-31.

MARKETPLACE_WORKFLOWRUN_START_TIME_MILLISECOND

892

The millisecond of the Workf.ow start time in format 0-999.

MARKETPLACE_WORKFLOWRUN_START_TIME_MONTH

05

The month of the Vessel start time in format 01-12.

MARKETPLACE_WORKFLOWRUN_SCHEDULED_TIME

2025-05-08T19:31:22Z

The time at which the Workflow started running. Formatted using the RFC3339 standard.

MARKETPLACE_WORKFLOWRUN_START_TIME_EPOCH

1758309067

The number of seconds since the Unix epoch.

MARKETPLACE_WORKFLOWRUN_ID

adb0eb95-3a7c-4601-bfe4-0be456c50350

The ID of the specific run instance of the workflow,

Workflow Details

MARKETPLACE_WORKFLOW_ID

d6e293d0-4ee9-4439-af74-2f2e7a895510

The ID of the entire workflow.



Environment Variable Type

Variable Name

Example (these are not real)

Definition

Azure Extension Directory

AZURE_EXTENSION_DIR

/usr/local/share/azure/xyz


Template ID

MARKETPLACE_TEMPLATE_NAME

template is owned, template id: 8f791ad0-70e8-4cd0-8176-b6f73b551ad7

template ID the task is built off of

Upstream Task Count

MARKETPLACE_WORKFLOW_UPSTREAM_COUNT

1

# of upstream tasks (tasks before the current task)

Upstream Task Run IDs

MARKETPLACE_WORKFLOW_UPSTREAM_TASKRUN_IDS

01d6v123-45db-4b92-92fe-fc1c3a172123

comma separated list of run (execution) id(s) of upstream tasks

Upstream Task IDs

MARKETPLACE_WORKFLOW_UPSTREAM_TASKRUN_IDS

6cdd413a-9f9a-46d6-b642-c62a2964aa84

comma separated list of run id(s) of upstream tasks

Downstream Task Count

MARKETPLACE_WORKFLOW_DOWNSTREAM_COUNT

2

# of downstream tasks

Downstream Task Run IDs

MARKETPLACE_WORKFLOW_DOWNSTREAM_TASKRUN_IDS

a340805b-b542-4882-b88b-262a9e638192,c7622d16-408d-4841-bd46-a53db234f6ea

comma separated list of (execution) id(s) of downstream tasks

Downstream Task IDs

MARKETPLACE_WORKFLOW_DOWNSTREAM_TASK_IDS

7d64856b-6cdb-4098-80c1-25d01f009bc8,fd9b8ddd-a8df-40a5-8f2b-5d5f53091482

comma separated list of id(s) of downstream tasks


WORKFLOWSAPP_APP_VERSION




MARKETPLACE_WORKFLOW_CURRENTSTREAM_COUNT

1



MARKETPLACE_PROJECT_ID

76db8271-4003-4ee4-a68c-addf41e62787

Ignore - all workflows have the same “project” - an old holdover from Shipyard


SHIPYARD__APP_VERSION

20260128.1

Ignore - all workflows have the same “project” - an old holdover from Shipyard


MARKETPLACE_PROJECT_NAME

Default

Ignore - all workflows have the same “project” - an old holdover from Shipyard