Skip to content

Commit

Permalink
[deploy] Always use long agent HB timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed Aug 19, 2022
1 parent 96489bb commit 5de1293
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,14 @@ echo "Deploying location ${INPUT_LOCATION_NAME} to deployment ${DEPLOYMENT_NAME}

echo "::set-output name=deployment::${DEPLOYMENT_NAME}"

# Extend timeout in case the agent is still spinning up
if [ $GITHUB_RUN_NUMBER -eq 1 ]; then
AGENT_HEARTBEAT_TIMEOUT=600
else
AGENT_HEARTBEAT_TIMEOUT=90
fi

dagster-cloud workspace add-location \
--url "${DAGSTER_CLOUD_URL}/${DEPLOYMENT_NAME}" \
--api-token "$DAGSTER_CLOUD_API_TOKEN" \
--location-file "${INPUT_LOCATION_FILE}" \
--location-name "${INPUT_LOCATION_NAME}" \
--image "${INPUT_REGISTRY}:${INPUT_IMAGE_TAG}" \
--location-load-timeout 600 \
--agent-heartbeat-timeout $AGENT_HEARTBEAT_TIMEOUT \
--agent-heartbeat-timeout 600 \
--git-url $COMMIT_URL \
--commit-hash $GITHUB_SHA

Expand Down

0 comments on commit 5de1293

Please sign in to comment.