Skip to content

Commit

Permalink
Add timeout function (#1477)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw authored Sep 14, 2021
1 parent d62f78f commit 93cc401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion end2end/execute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ function wait_for_flyte_deploys() {
echo "Flyte deployed in $SECONDS seconds."
}

function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }

function run_flyte_examples()
{
echo $DIR
# Launch test
kubectl -n flyte create -f $DIR/tests/endtoend.yaml
# Wait at most 20 minutes for things to pass
/usr/bin/timeout 1200 $DIR/test_monitor.sh
timeout 1200 $DIR/test_monitor.sh
return $?
}

Expand Down

0 comments on commit 93cc401

Please sign in to comment.