Hi Guys,
I will try to report things I change / fix in the code to make it work in our end so hopefully it gets to the official build.
So today our Draft jobs started failing while creating strips and movies for the Shotgun… There was a problem with argument string being too long and after checking the job it was in fact too long, as it contained -infile, -outfile parms from all recent jobs.
So the issue in DraftEventPlugin.py is inside OnJobFinished():
self.CreateDraftJob( draftTemplate, job, "Draft Template", outputIndex=i, draftArgs=scriptArgs, mode=mode )
That 3rd parameter is actually used to create temp file that stores all jobs parameters… but it’s always the same file so the parameters build up.
jobInfoFile = Path.Combine( deadlineTemp, "draft_event_{0}_{1}.job".format( jobTag.replace( ' ', '_' ), outputIndex ) )
So what I did is:
inside the OnJobFinished, instead of passing “Draft Template” string, i pass job.name instead… which fixed the issue. Maybe it would be better to use some random string or clear that temp file at some point.
Best,
Tomasz Wyszolmirski