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
How to debug a pdg scheduler type?
2070 2 1- drew
- Member
- 118 posts
- Joined: July 2005
- Offline
- tpetrick
- Staff
- 591 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:
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:
- drew
- Member
- 118 posts
- Joined: July 2005
- Offline
-
- Quick Links