123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- set -vex
- executable=${PYPEFLOW_JOB_START_SCRIPT}
- timeout=${PYPEFLOW_JOB_START_TIMEOUT:-60}
- while [[ ! -x "${executable}" ]]; do
- if [[ "${timeout}" == "0" ]]; then
- echo "timed out waiting for (${executable})"
- exit 77
- fi
- echo "not executable: '${executable}', waiting ${timeout}s"
- sleep 1
- timeout=$((timeout-1))
- done
- /bin/bash ${executable}
|