issue #57 reconstruct

This commit is contained in:
Berger Eugene 2023-06-16 01:19:44 +03:00
parent 014bf702ed
commit 81ce3251a9
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,10 @@
version: "0.5"
log_level: debug
processes:
bad_script:
command: "./too_chatty.py"
_pc_log:
command: "tail -f -n100 process-compose-${USER}.log"
working_dir: "/tmp"

14
issues/issue_57/too_chatty.py Executable file
View File

@ -0,0 +1,14 @@
#! /usr/bin/env python3
import datetime
start = datetime.datetime.now()
cntr=0
duration=""
while True:
print("I am long line number {0} ====================================== Duration per 100k: {1}".format(cntr, duration))
cntr += 1
if cntr % 100000 == 0:
duration = datetime.datetime.now() - start
start = datetime.datetime.now()