Q: submit deadline job without needing Hython on the worker

   1199   2   1
User Avatar
Member
7025 posts
Joined: July 2005
Offline
Hi,

We're using PDG very successfully on 1,000's of jobs in Deadline and it's running very smoothly.

One of the tasks is a Python script that runs on a worker "by itself" (i.e. nothing else runs on that worker or even that physical machine) but currently it seems like the Deadline job runs Hython which then runs the script. This seems.... needlessly expensive? It's just a Python script

Am I missing something vis a vis having just the script run without Hython? I'm using a Python Script TOP, but I wonder if I need to use the Python Processor? The latter I don't really understand at all currently

Oh, 18.5.598 Win 10

Cheers,

Peter B
User Avatar
Staff
586 posts
Joined: May 2014
Offline
The Python Script generates one work item for each input work item, and configures that work item to run the script code you specified on the node. The Python Processor node on the other hand allows you to actually define how work items are generated, e.g. you can generate 3 work items from each input, or a random number of work items for each input work item, or some custom logic based on parameters. It's useful if you want to e.g. fan out the number of work items you have, as opposed to the Python Script which is always just a one-to-one relationship with the input.

As for running with hython, the Python Script Python Executable section that you can use to customize which Python executable is used to run the script, if the node is running work items out of process. By default it uses hython, but you can tell it use plain Python or a custom path instead.
User Avatar
Member
7025 posts
Joined: July 2005
Offline
Thanks so much! I missed the Python Script Python Executable completely, exactly what I needed!

Also thanks for the explanation, the Script functionality does what I need now, but I see how the Processor can be very useful!

Cheers,

Peter B
  • Quick Links