Skip to content

Commit

Permalink
PDG: Submit Graph As Job got service and ticket settings.
Browse files Browse the repository at this point in the history
This can help to assign cook job on a special host(s) and use a special ticket (licence).

References #514.
  • Loading branch information
timurhai committed Jul 26, 2021
1 parent af3c69f commit 345b1a7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions afanasy/python/services/hbatch_pdg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
from services import service

parser = 'generic'


class hbatch_pdg(service.service):
"""Hython executes PDG cook
"""
pass
Binary file added icons/tickets/PDG.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.
3 changes: 2 additions & 1 deletion plugins/houdini/pdg/types/afanasyscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,9 @@ def submitAsJob(self, graph_file, node_path):
if self['gj_start_paused'].evaluateInt():
job.setPaused()
# Block
block = af.Block('PDG-GRAPH','hbatch')
block = af.Block('PDG-GRAPH', self['gj_service'].evaluateString())
block.setCapacity(self['gj_capacity'].evaluateInt())
block.addTicket(self['gj_ticket'].evaluateString(), 1)
# Task
task = af.Task(node_path)
task.setCommand(cmd)
Expand Down

0 comments on commit 345b1a7

Please sign in to comment.