AWS Thinkbox Discussion Forums

50509 doesnt update "Task progress" column

Hi
When running Draft jobs with version 50509 theres no updates of the Task progress column in the job list. It just stays at 0% until the job is finished and then jumps to 100%.

Cheers
Bonsak

Do you have your Draft script printing out progress values? The D6 Draft Plugin would be expecting it to print out lines containing “Progress: XX%” (where XX is the current progress value). If you had made custom changes to the plugin expecting a different type of output, I’d make sure they didn’t get wiped out in the upgrade. Also, keep in mind that if the Draft Jobs are really short (say, less than 20 seconds), the Slave might not have the time to update the task’s progress before it finishes.

In the meantime, I’ll do some tests to make sure this isn’t outright broken in Deadline 6 :slight_smile:

Cheers,

  • Jon

Hi
Im priting every frame number to se whats happening in the log. but i should i instead print percentage values? Will that be reflected in the Task progress column in Monitor?

Cheers
Bonsak

You could always do both, but printing out progress percentage in the format I listed above is the only way to get progress updating in the monitor, unless you make modifications to the Draft plugin yourself.

Just as a basic test, I whipped up the following test script that should just print out progress percentage:

[code]import time

for i in range( 0, 100 ):
print “Progress: %d%%” % i
time.sleep( 1 )[/code]

Hi
Ok. I didnt know :slight_smile: I tried with this code but i still cant get it to update the “Task progress column”

Cheers
Bonsak

[code]
for frameNumber in frames:

print "Progress: %d%%" % ((frameNumber * 100 ) / len(frames))
sys.stdout.flush()

inFile = ReplaceFilenameHashesWithNumber( path, frameNumber )
myFrame = Draft.Image.ReadFromFile( inFile )

myFrame.Resize( outWidth, outHeight )
srgbLut.Apply( myFrame )
encoder.EncodeNextFrame( myFrame )

encoder.FinalizeEncoding()[/code]

Odd. That looks like it should work. How long does that Draft Job take to run? Could you also post the version of the Draft plugin currently in your Repository? You can find it in the ‘plugins/Draft’ folder

Just to double-check that the script isn’t doing something funny, could you post a sample of what is in the log file?

Hi
Heres the log. Ive tried this at the studio as well and it doesnt seem to work here either.
Draft is version 1.0.0.49258

Cheers
Bonsak
draft-task-prog-slave-log.txt (20 KB)

Sorry, my phrasing might’ve been a little confusing – I was looking for the actual Draft plugin file, not the Draft version :slight_smile: Could you zip up the ‘plugins/Draft/Draft.py’ file in your repo, and post it here? I suspect it’s outdated and is actually missing the progress reporting bit. If it isn’t, I’ll be extremely confused.

Cheers,

  • Jon

Here you go.

Cheers
Bonsak
Draft.py.zip (2.54 KB)

Hey Bonsak,

So your plugin is fine, and at this point I think I misunderstood which column in the Monitor you are referring to.

I was originally thinking that you meant the Task’s “Progress” column (in the Task panel), but re-reading your original post I now think you must have been referring to the Job’s overall “Task Progress” (in the Job panel).

The difference is that with your code, it should now be updating the “Progress” column at the task level, but the Job’s “Task Progress” column is only ever updated when individual Tasks are finished – so for single-Task jobs (like Draft jobs), this will always go straight from 0% to 100%. We do want to eventually add code to pull progress from the Task for single-task Jobs, but unfortunately this won’t be until at least 6.1.

Sorry for all the confusion!

Cheers,

  • Jon

Ah. I see :slight_smile:

Cheers
Bonsak

Privacy | Site terms | Cookie preferences