example k8s pipeline

This commit is contained in:
Waylon Walker 2023-11-05 14:31:57 -06:00
parent 82ba3bc778
commit 6fef7854ac
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
4 changed files with 113 additions and 0 deletions

14
python-jobs/pipeline.py Normal file
View 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}")