rename to jobrunner
This commit is contained in:
parent
cbd5a39c2e
commit
aca915c22b
4 changed files with 0 additions and 0 deletions
14
jobrunner/pipeline.py
Normal file
14
jobrunner/pipeline.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import time
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.INFO)
|
||||
logger.addHandler(logging.StreamHandler())
|
||||
|
||||
# log to ./log.log
|
||||
logger.addHandler(logging.FileHandler("./log.log"))
|
||||
|
||||
for node in range(120):
|
||||
print(f"running {node+1} of 120")
|
||||
time.sleep(5)
|
||||
logger.info(f"done {node}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue