Skip to content

Commit

Permalink
PDG: Paths mapping parametes added to scheduler.
Browse files Browse the repository at this point in the history
References: #514.
  • Loading branch information
timurhai committed Aug 16, 2021
1 parent d6309ca commit 3f496f0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/software/houdini.rst
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,16 @@ Scheduling Parameters
Specifies the directory where the cook generates intermediate files.
The intermediate files are placed in a subdirectory named ``pdgtemp``.

- Path Mapping
- Global
If the PDG Path Map exists, then it is applied to file paths.
- None
Delocalizes paths using the PDG_DIR token.

- Path Map Zone
When on, specifies a custom mapping zone to apply to all jobs executed by this scheduler.
Otherwise, the local platform is ``LINUX``, ``MAC`` or ``WIN``.


Submit Graph As Job
-------------------
Expand Down Expand Up @@ -729,6 +739,11 @@ Adjustment Parameters
A cook that is blocked on failed work items can still be canceled using the ESC key,
the cancel button in the TOP task bar, or the cancel API method.

- Validate Outputs When Recooking
When enabled, PDG will check the output files of work items when the graph recooks,
to see if the files still exist on disk.
Work items that are missing output files will be dirtied and cook again.

- Check Expected Outputs On Disk
When enabled, PDG will look on disk for any expected work items outputs
that were not explicitly reported when the work item cooked.
Expand Down
Binary file modified docs/software/images/houdini_pdg_adjustment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/software/images/houdini_pdg_scheduler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plugins/houdini/otls/afanasyscheduler.hda
Binary file not shown.
6 changes: 6 additions & 0 deletions plugins/houdini/pdg/types/afanasyscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ def _constructTask(self, work_item):
task.setEnv('PDG_INDEX4', "{:04d}".format(work_item.index))
task.setEnv('PDG_SCRIPTDIR', str(self.scriptDir(False)))

# This adds paths mapping data to environment
self.resolvePathMapping(task.data['environment'])
# We need to set it after task.setEnv,
# as on task.setEnv CGRU paths mapping applied.
# And better not to apply CGRU paths mapping on PDG paths mapping data.

return task


Expand Down

0 comments on commit 3f496f0

Please sign in to comment.