Hi there,
it seems like no logs are saved for the post job script tasks,
cheers,
laszlo
Hi there,
it seems like no logs are saved for the post job script tasks,
cheers,
laszlo
Hi Laszlo,
I just tested a job in my queue with a postJob script assigned to it and all looks good, with a job report being created for this “postjob” task. I’m running: “Version: v6.2.0.21 R (fa590cd31)”. What version are you guys on?
Mike
Not a single one of our post job scripts generate task logs, be it nuke, maya or any other type of a job. We are on 6.1.0.54584 R, was there any related fixes since? I didn’t see anything related to logs in the change-logs
Hey Laszlo,
Yep, there’s no mention of any fix between your current v6.1 RC3 version and the latest v6.2 beta 5 release and it’s working fine for me in my tests so far. Could you possibly post one of the scripts you are using, so we can try and reproduce it here for you?
Thanks,
Mike
Sure, here is the code of the script:
import sys
sPATH="//s2/exchange/software/managed/pythonScripts/site-packages"
sVERPATH="//s2/exchange/software/managed/pythonScripts/site-packages_configured/scl/windows_amd64_msc9_python26__qt4_7_1_internal"
sys.path.append(sPATH)
sys.path.append(sVERPATH)
import scl.pipeline.notifyDepartments as notify
from scl.shotgun.v2_00 import resource
sShow = "got"
sShot = "IH_1025A_5880"
sAssets = [u'chrWightF_0', u'chrWightC_0', u'chrWightH_0', u'prpSwordLongB_0', u'prpAxeSmlA_0', u'chrWightC_1', u'chrWightF_1', u'prpSwordLongB_1', u'chrWightC_2', u'chrWightH_1', u'prpAxeSmlA_1', u'prpSwordB_0']
sTag = "v0062_ehu_camera_pub"
sComment = u'camera pub, anim not client approved yet'
iResourceID = 7765
dictCCs = []
dictUser = {'type': 'HumanUser', 'id': 679, 'name': 'CENSORED'}
sSubject = "Eric's Note on animAll Animation Publish Version: v0062_ehu_camera_pub"
def __main__(*args):
try:
notify.notifyAnimationPublish(sShow, sShot, sAssets, sTag, sComment)
except:
print "Failed to send a notification."
try:
resource.createNote(sShow, iResourceID, [],dictCCs, dictUser, sComment, sSubject)
except:
print "Failed to create shotgun note."
A screenshot of the task reports for this task:
If i remote into the slave and find the appropriate slave log, i find this - suggesting the log is generated, but never saved for the task:
2014-04-02 19:57:03: Scheduler Thread - Synchronizing job auxiliary files from \\inferno2\deadline\repository6\jobs\533c553b6eb5da1490a1871e
2014-04-02 19:57:03: Scheduler Thread - Synchronization time for job files: 124.800 ms
2014-04-02 19:57:03: Scheduler Thread - Synchronizing plugin files from \\inferno2\deadline\repository6\plugins\MayaBatch
2014-04-02 19:57:03: Scheduler Thread - Synchronization time for plugin files: 31.200 ms
2014-04-02 19:57:04: 0: Got task!
2014-04-02 19:57:04: 0: Plugin will be reloaded because Reload Plugin Between Frames is enabled for this job
2014-04-02 19:57:04: Constructor: MayaBatch
2014-04-02 19:57:04: 0: Loaded plugin: MayaBatch
2014-04-02 19:57:04: 0: Task timeout is being ignored because this is a Post Job Script Task
2014-04-02 19:57:04: 0: Loaded job: [GOT] Publish: IH_1025A_5880_maya_animation_animAll.ma, v0062_ehu_camera_pub user: ehu (533c553b6eb5da1490a1871e)
2014-04-02 19:57:04: 0: Plugin executing post job script
2014-04-02 19:57:04: 0: Executing Post Job Script: "C:\Users\scanlinevfx\AppData\Local\Thinkbox\Deadline6\slave\LAPRO0323\jobsData\533c553b6eb5da1490a1871e\animNotification.py"
2014-04-02 19:57:04: 0: INFO: Executing plugin script C:\Users\scanlinevfx\AppData\Local\Thinkbox\Deadline6\slave\LAPRO0323\plugins\533c553b6eb5da1490a1871e\MayaBatch.py
2014-04-02 19:57:04: 0: INFO: About: Maya Batch Plugin for Deadline
2014-04-02 19:57:04: 0: INFO: The job's environment will be merged with the current environment before rendering
2014-04-02 19:57:04: 0: INFO: Executing post job script C:\Users\scanlinevfx\AppData\Local\Thinkbox\Deadline6\slave\LAPRO0323\jobsData\533c553b6eb5da1490a1871e\animNotification.py
2014-04-02 19:57:05: 0: PYTHON: ********************************************************************************
2014-04-02 19:57:05: 0: PYTHON: scl.pipeline.notifyDepartments begin
2014-04-02 19:57:06: 0: PYTHON: Layout
2014-04-02 19:57:07: 0: PYTHON: Animation
2014-04-02 19:57:07: 0: PYTHON: Lighting Cave
2014-04-02 19:57:08: 0: PYTHON: FX-WightExplode
2014-04-02 19:57:09: 0: PYTHON: mocapPerformance
2014-04-02 19:57:09: 0: PYTHON: FX - Cloth - Wight c
2014-04-02 19:57:10: 0: PYTHON: FX - Cloth - Wight f
2014-04-02 19:57:10: 0: PYTHON: FX - Cloth - Wight h
2014-04-02 19:57:11: 0: PYTHON: [CENSORED]
2014-04-02 19:57:11: 0: PYTHON: updating aliases
2014-04-02 19:57:11: 0: PYTHON: constructing message
2014-04-02 19:57:11: 0: PYTHON:
2014-04-02 19:57:11: 0: PYTHON: Animation has been published.
2014-04-02 19:57:11: 0: PYTHON: Show: got
2014-04-02 19:57:11: 0: PYTHON: Shot: IH_1025A_5880
2014-04-02 19:57:11: 0: PYTHON: VersionTag: v0062_ehu_camera_pub
2014-04-02 19:57:11: 0: PYTHON: VersionComment: camera pub, anim not client approved yet
2014-04-02 19:57:11: 0: PYTHON: AssetNames:
2014-04-02 19:57:11: 0: PYTHON: chrWightF_0
2014-04-02 19:57:11: 0: PYTHON: chrWightC_0
2014-04-02 19:57:11: 0: PYTHON: chrWightH_0
2014-04-02 19:57:11: 0: PYTHON: prpSwordLongB_0
2014-04-02 19:57:11: 0: PYTHON: prpAxeSmlA_0
2014-04-02 19:57:11: 0: PYTHON: chrWightC_1
2014-04-02 19:57:11: 0: PYTHON: chrWightF_1
2014-04-02 19:57:11: 0: PYTHON: prpSwordLongB_1
2014-04-02 19:57:11: 0: PYTHON: chrWightC_2
2014-04-02 19:57:11: 0: PYTHON: chrWightH_1
2014-04-02 19:57:11: 0: PYTHON: prpAxeSmlA_1
2014-04-02 19:57:11: 0: PYTHON: prpSwordB_0
2014-04-02 19:57:11: 0: PYTHON: mailing
2014-04-02 19:57:11: 0: PYTHON: complete
2014-04-02 19:57:11: 0: PYTHON: ********************************************************************************
2014-04-02 19:57:11: 0: PYTHON: scl.pipeline.notifyDepartments finish
2014-04-02 19:57:11: 0: Execution time for script: 7.550 s
2014-04-02 19:57:11: 0: Total time for task: 15.130 s
2014-04-02 19:57:12: notifying eric.huang@scanlinevfx.com via email...
Thanks! I took your script and removed everything but the print statements, which resulted in this:
def __main__(*args):
print "Failed to send a notification."
print "Failed to create shotgun note."
A report was created. I then tested the script again with no print statements (just a ‘pass’) and that also generated a report.
def __main__(*args):
#print "Failed to send a notification."
#print "Failed to create shotgun note."
pass
Can you maybe test one of these simple scripts to see if they generate a report?
Cheers,
Ryan
We tested this, and it still has no log shown in the monitor… we see it in the slave’s log if browsed to:
2014-04-23 15:18:12: 0: PYTHON: C:\Program Files\Thinkbox\Deadline6\bin\UI
2014-04-23 15:18:12: 0: PYTHON: * * * * * * *
2014-04-23 15:18:12: 0: INFO: About: Nuke Plugin for Deadline
2014-04-23 15:18:12: 0: INFO: The job’s environment will be merged with the current environment before rendering
2014-04-23 15:18:12: 0: INFO: Executing post job script //inferno2/projects/test/home/ssl/postJobTest.py
2014-04-23 15:18:12: 0: PYTHON: Failed to send a notification.
2014-04-23 15:18:12: 0: PYTHON: Failed to create shotgun note.
But it does not create a report…
We tried this with the latest (6.2.0.24) build. Any ideas?
Well, i found something… If i right click on the job and get the job reports, i see the post job task report. But if i right click on the actual task for the post-job script, it comes up empty in the task reports window!
Ah, okay, at least we know that the log is actually getting created!
We’ll try to reproduce, and get this fixed.
Thanks!
Ryan
Yeah i digged through the mongo collections and found the log in there… so then i tried to list all logs for the job (we usually don’t do that when looking only for one specific task’s log) and it appeared.
This will be fixed in the next beta release.
Cheers,
Ryan
thanks!