Skip to content

Commit 165b940

Browse files
authored
Add option to disable directory synchronization (#743)
1 parent 1b37830 commit 165b940

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

task/common/machine/machine-script.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ while sleep 5; do
152152
fi
153153
done &
154154

155-
while sleep 10; do
155+
while ! test -v TPI_DISABLE_DATA_DIRECTORY_SYNCHRONIZATION && sleep 10; do
156156
NEW_TPI_DATA_DIRECTORY_EPOCH="$(find "$TPI_DATA_DIRECTORY" -printf "%T@\n" | sort | tail -1)"
157157
if test "$NEW_TPI_DATA_DIRECTORY_EPOCH" != "$TPI_DATA_DIRECTORY_EPOCH"; then
158158
TPI_DATA_DIRECTORY_EPOCH="$NEW_TPI_DATA_DIRECTORY_EPOCH"

task/common/machine/testdata/machine_script_full.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ while sleep 5; do
152152
fi
153153
done &
154154

155-
while sleep 10; do
155+
while ! test -v TPI_DISABLE_DATA_DIRECTORY_SYNCHRONIZATION && sleep 10; do
156156
NEW_TPI_DATA_DIRECTORY_EPOCH="$(find "$TPI_DATA_DIRECTORY" -printf "%T@\n" | sort | tail -1)"
157157
if test "$NEW_TPI_DATA_DIRECTORY_EPOCH" != "$TPI_DATA_DIRECTORY_EPOCH"; then
158158
TPI_DATA_DIRECTORY_EPOCH="$NEW_TPI_DATA_DIRECTORY_EPOCH"

task/common/machine/testdata/machine_script_minimal.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ while sleep 5; do
152152
fi
153153
done &
154154

155-
while sleep 10; do
155+
while ! test -v TPI_DISABLE_DATA_DIRECTORY_SYNCHRONIZATION && sleep 10; do
156156
NEW_TPI_DATA_DIRECTORY_EPOCH="$(find "$TPI_DATA_DIRECTORY" -printf "%T@\n" | sort | tail -1)"
157157
if test "$NEW_TPI_DATA_DIRECTORY_EPOCH" != "$TPI_DATA_DIRECTORY_EPOCH"; then
158158
TPI_DATA_DIRECTORY_EPOCH="$NEW_TPI_DATA_DIRECTORY_EPOCH"

0 commit comments

Comments
 (0)