AWS Thinkbox Discussion Forums

Progress reporting from command line

I am trying to have my script update the progress bar in Deadline,
I’m running this:

print(“Progress: %s%%” % str(int(float(current) / float(total) * 100.)))
sys.stdout.flush()

But as you can see I’m not getting any feedback.

Any ideas?

Assuming this is the commandline plugin, can you open the CommandLine.py, does it have this line in the InitalizeProcess?

That should catch the progress, exactly how you have specified.


Looks like it.

Could it be an issue with
GetRegexMatch

the simple way to test to see if its hitting that handler, would be to put a loginfo print when HandleProgress is called.

that way you will know for sure, if the the problem is the regex in the handlecallback or the handle process function that is not working.

Privacy | Site terms | Cookie preferences