Search - User list
Full Version: How to debug a pdg scheduler type?
Root » PDG/TOPs » How to debug a pdg scheduler type?
drew
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
tpetrick
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:

drew
Many thanks, that makes things a lot easier!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB