How to debug a pdg scheduler type?

   2011   2   1
User Avatar
Member
117 posts
Joined: July 2005
Offline
How does one go about developing a new scheduler type? At the moment if there is a problem with the python code the only feedback seems to be this error.

Load warnings for /home/drw900/HoudiniProjects/pbs/pbs_scheduler.hip
Warning: Bad node type found: pdg_drw900_pbsscheduler in /tasks/topnet1.

Is there some way to see the python interpreter stdout/err, stack trace etc?

Cheers,
Drew
User Avatar
Staff
586 posts
Joined: May 2014
Offline
Run Houdini with the HOUDINI_PDG_TYPE_ERROR variable set to 1 or higher. Any errors encountered when importing PDG node/scheduler type definitions will be printed to shell. Setting that env var to 2 will cause PDG to print a log message for each Python module that it processes on startup. That variable was added in H18.0.423, so you'll need to be on that build or newer.

If the issue is inside of one of the callback methods on your custom scheduler implementation, you'll get an error on the scheduler node instance when the method is called. For example, if there's a syntax error inside of the onSchedule method itself:

Attachments:
scheduler_errors.png (83.2 KB)

User Avatar
Member
117 posts
Joined: July 2005
Offline
Many thanks, that makes things a lot easier!
  • Quick Links