Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Commit 02112ed

Browse files
committed
fix(deploy.py): delay so stderr is logged before pod exits
1 parent 41111f6 commit 02112ed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rootfs/deploy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import docker
22
import os
33
import tarfile
4+
import time
45
import requests
56
import subprocess
67

@@ -25,6 +26,8 @@ def log_output(stream, decode):
2526
elif DEBUG:
2627
print(chunk.decode('utf-8'))
2728
if error:
29+
# HACK: delay so stderr is logged before this dockerbuilder pod exits.
30+
time.sleep(3)
2831
exit(1)
2932

3033

0 commit comments

Comments
 (0)