moj-analytical-services / etl_manager

A python package to create a database on the platform using our moj data warehousing framework
21 stars 9 forks source link

Add verbose input param to wait_for_completion() method #64

Closed isichei closed 5 years ago

isichei commented 6 years ago

Might be useful to print out what the job status is at each time stamp of the wait with a time difference?

cyberhobbes commented 6 years ago

Hi Karik,

I can give this a try.

I will print("[{}] Code: {} | Error: {}".format(time, status_code, status_error)) when verbose=true

Time will be in UTC and 24 hours format: time=datetime.datetime.now().strftime("%B %d, %Y - %H:%M:%S")

The sleep value is every 10 seconds, I am not sure what you meant by getting the time difference?

isichei commented 5 years ago

Thanks - now part of v2.0.0