Skip to content

Commit

Permalink
Merge pull request #378 from tmaeno/master
Browse files Browse the repository at this point in the history
allowed/excluded_processing_types in SiteSpec
  • Loading branch information
tmaeno authored Jul 16, 2024
2 parents 2b25f55 + 9308efa commit 7dbcdd1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PandaPkgInfo.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = "0.3.13"
release_version = "0.3.14"
22 changes: 22 additions & 0 deletions pandaserver/taskbuffer/SiteSpec.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,25 @@ def secondary_nucleus(self):
if n:
return n
return None

# get allowed processing types
def get_allowed_processing_types(self):
"""
Get allowed processing types for processing type-based job brokerage to access only tasks with specific processing types.
They are defined in the catchall field as a pipe-separated list with the key "allowed_processing".
"""
n = self.getValueFromCatchall("allowed_processing")
if n:
return n.split("|")
return None

# get excluded process types
def get_excluded_processing_types(self):
"""
Get excluded processing types for processing type-based job brokerage to exclude tasks with specific processing types.
They are defined in the catchall field as a pipe-separated list with the key "excluded_processing".
"""
n = self.getValueFromCatchall("excluded_processing")
if n:
return n.split("|")
return None

0 comments on commit 7dbcdd1

Please sign in to comment.