Skip to content

Commit

Permalink
Add option to disable directory synchronization (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Mar 13, 2023
1 parent 1b37830 commit 165b940
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion task/common/machine/machine-script.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ while sleep 5; do
fi
done &

while sleep 10; do
while ! test -v TPI_DISABLE_DATA_DIRECTORY_SYNCHRONIZATION && sleep 10; do
NEW_TPI_DATA_DIRECTORY_EPOCH="$(find "$TPI_DATA_DIRECTORY" -printf "%T@\n" | sort | tail -1)"
if test "$NEW_TPI_DATA_DIRECTORY_EPOCH" != "$TPI_DATA_DIRECTORY_EPOCH"; then
TPI_DATA_DIRECTORY_EPOCH="$NEW_TPI_DATA_DIRECTORY_EPOCH"
Expand Down
2 changes: 1 addition & 1 deletion task/common/machine/testdata/machine_script_full.golden
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ while sleep 5; do
fi
done &

while sleep 10; do
while ! test -v TPI_DISABLE_DATA_DIRECTORY_SYNCHRONIZATION && sleep 10; do
NEW_TPI_DATA_DIRECTORY_EPOCH="$(find "$TPI_DATA_DIRECTORY" -printf "%T@\n" | sort | tail -1)"
if test "$NEW_TPI_DATA_DIRECTORY_EPOCH" != "$TPI_DATA_DIRECTORY_EPOCH"; then
TPI_DATA_DIRECTORY_EPOCH="$NEW_TPI_DATA_DIRECTORY_EPOCH"
Expand Down
2 changes: 1 addition & 1 deletion task/common/machine/testdata/machine_script_minimal.golden
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ while sleep 5; do
fi
done &

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

0 comments on commit 165b940

Please sign in to comment.