mirror of
https://github.com/F1bonacc1/process-compose.git
synced 2024-09-11 19:37:08 +03:00
issue #57 reconstruct
This commit is contained in:
parent
014bf702ed
commit
81ce3251a9
10
issues/issue_57/process-compose.yaml
Normal file
10
issues/issue_57/process-compose.yaml
Normal 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
14
issues/issue_57/too_chatty.py
Executable 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()
|
||||
|
Loading…
Reference in New Issue
Block a user