Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 63550d5af3 | |||
| 7ec0e11938 | |||
| 191fbbfe18 | |||
| 9a4a39c71b |
+1
-1
@@ -431,4 +431,4 @@ class Backend:
|
|||||||
if os.path.isfile(self.model_log_file) is True:
|
if os.path.isfile(self.model_log_file) is True:
|
||||||
return await tail_log()
|
return await tail_log()
|
||||||
else:
|
else:
|
||||||
await sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|||||||
@@ -41,14 +41,6 @@ echo_var DEBUG_LOG
|
|||||||
echo_var PYWORKER_LOG
|
echo_var PYWORKER_LOG
|
||||||
echo_var MODEL_LOG
|
echo_var MODEL_LOG
|
||||||
|
|
||||||
# if instance is rebooted, we want to clear out the log file so pyworker doesn't read lines
|
|
||||||
# from the run prior to reboot. past logs are saved in $MODEL_LOG.old for debugging only
|
|
||||||
if [ -e "$MODEL_LOG" ]; then
|
|
||||||
echo "Rotating model log at $MODEL_LOG to $MODEL_LOG.old"
|
|
||||||
cat "$MODEL_LOG" >> "$MODEL_LOG.old"
|
|
||||||
: > "$MODEL_LOG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Populate /etc/environment with quoted values
|
# Populate /etc/environment with quoted values
|
||||||
if ! grep -q "VAST" /etc/environment; then
|
if ! grep -q "VAST" /etc/environment; then
|
||||||
env -0 | grep -zEv "^(HOME=|SHLVL=)|CONDA" | while IFS= read -r -d '' line; do
|
env -0 | grep -zEv "^(HOME=|SHLVL=)|CONDA" | while IFS= read -r -d '' line; do
|
||||||
|
|||||||
Reference in New Issue
Block a user