forked from big-data-europe/docker-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplifying and correcting pipeline scripts
- Loading branch information
Erika Pauwels
committed
Feb 18, 2016
1 parent
792f3ef
commit 2fa9404
Showing
3 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/bin/bash | ||
|
||
echo "Execute step ${INIT_DAEMON_STEP} in pipeline" | ||
until [ $(curl -s -X PUT $INIT_DAEMON_BASE_URI/execute?step=$INIT_DAEMON_STEP) = "true" ]; do | ||
echo -n '.' | ||
sleep 5 | ||
done | ||
curl -X PUT $INIT_DAEMON_BASE_URI/execute?step=$INIT_DAEMON_STEP | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
#!/bin/bash | ||
|
||
echo "Finish step ${INIT_DAEMON_STEP} in pipeline" | ||
until [ $(curl -s -X PUT $INIT_DAEMON_BASE_URI/finish?step=$INIT_DAEMON_STEP) = "true" ]; do | ||
echo -n '.' | ||
sleep 5 | ||
done | ||
curl -s -X PUT $INIT_DAEMON_BASE_URI/finish?step=$INIT_DAEMON_STEP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#!/bin/bash | ||
|
||
echo "Validating if step ${INIT_DAEMON_STEP} can start in pipeline" | ||
until [ $(curl -s $INIT_DAEMON_BASE_URI/canStart?step=$INIT_DAEMON_STEP) = "true" ]; do | ||
echo -n '.' | ||
while true; do | ||
sleep 5 | ||
echo -n '.' | ||
string=$(curl -s $INIT_DAEMON_BASE_URI/canStart?step=$INIT_DAEMON_STEP) | ||
[ "$string" = "true" ] && break | ||
done | ||
echo "Can start step ${INIT_DAEMON_STEP}" |