Right now, there is no way to get access to any information about the incoming job from the main entry points in a job plugin or event listener’s Python module (GetDeadlinePlugin() and GetDeadlineEventListener(), respectively).
It would be hugely helpful if there was some kind of job-related information made available in both of these places. A Job object would be fantasitc, but even a job ID would be helpful. Alternately, being able to define environment variables on submission that would be available here would probably work as well. Basically, I’m using these modules as stub loaders for classes that are defined elsewhere, and I’d like to be able to switch the location of the main plugin definition in our pipeline based on some job-level information, custom environment variable, etc.
Any thoughts on the feasibility of something like this?
Thanks