Okay, we’re finally getting Deadline pushed out to our farm machines, and doing some final testing before making it live. We went with Deadline 10 instead of 9 like we were testing on since it didn’t make sense to start a version behind.
However, I’m running into a curious issue in our custom event. We get the following error:
2017-11-17 13:11:46: An error occurred in the "OnSlaveStartingJob" function in events plugin 'MpsEvents': NameError : global name 'RepositoryUtils' is not defined (Python.Runtime.PythonException)
2017-11-17 13:11:46: File "none", line 55, in OnSlaveStartingJob
2017-11-17 13:11:46: (Deadline.Events.DeadlineEventPluginException)
2017-11-17 13:11:46: at Deadline.Events.DeadlineEventPlugin. (System.String , System.Exception ) [0x0002a] in <5a937a3366974c228d0131bcd22e9d64>:0
2017-11-17 13:11:46: at Deadline.Events.DeadlineEventPlugin.OnSlaveStartingJob (System.String slaveName, Deadline.Jobs.Job job) [0x00054] in <5a937a3366974c228d0131bcd22e9d64>:0
2017-11-17 13:11:46: at Deadline.Events.DeadlineEventManager.OnSlaveStartingJob (System.String slaveName, Deadline.Jobs.Job job, Deadline.Controllers.DataController dataController) [0x00106] in <5a937a3366974c228d0131bcd22e9d64>:0
That event is only running with the arguments self and job in my code, so I’m not sure why it’s erring.
Whoa, the error changed when I tried to copy it. That’s a tad weird.
It SHOULD have said:
2017-11-17 16:32:37: An error occurred in the "OnSlaveStartingJob" function in events plugin 'MpsEvents': TypeError : OnSlaveStartingJob() takes exactly 2 arguments (3 given) (Python.Runtime.PythonException)
2017-11-17 16:32:37: (Deadline.Events.DeadlineEventPluginException)
2017-11-17 16:32:37: at Deadline.Events.DeadlineEventPlugin. (System.String , System.Exception ) [0x0002a] in <5a937a3366974c228d0131bcd22e9d64>:0
2017-11-17 16:32:37: at Deadline.Events.DeadlineEventPlugin.OnSlaveStartingJob (System.String slaveName, Deadline.Jobs.Job job) [0x00054] in <5a937a3366974c228d0131bcd22e9d64>:0
2017-11-17 16:32:37: at Deadline.Events.DeadlineEventManager.OnSlaveStartingJob (System.String slaveName, Deadline.Jobs.Job job, Deadline.Controllers.DataController dataController) [0x00106] in <5a937a3366974c228d0131bcd22e9d64>:0
I see that the FontSync.py now asks for self, slaveName, and job whereas before it apparently asked for just its name and job (I think? I’m pretty sure this worked before…) I’ll give that a shot. I was concerned about having three arguments supposedly given and only taking 2.