Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/python/WMComponent/JobCreator/JobCreatorPoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ def __init__(self, config):
self.agentName = getattr(config.Agent, 'hostName', '')
self.glideinLimits = getattr(config.JobCreator, 'GlideInRestriction', None)

# Load workflows/filesets to skip
self.skipWorkflows = getattr(config.JobCreator, 'skipWorkflows', [])
self.skipFilesets = getattr(config.JobCreator, 'skipFilesets', [])

try:
self.jobCacheDir = getattr(config.JobCreator, 'jobCacheDir',
os.path.join(config.JobCreator.componentDir, 'jobCacheDir'))
Expand Down Expand Up @@ -443,6 +447,15 @@ def pollSubscriptions(self):
wmbsSubscription['workflow'] = workflow
wmWorkload = retrieveWMSpec(workflow=workflow)

# Check if we should skip this workflow or fileset
if workflow.name in self.skipWorkflows:
logging.info("Skipping workflow %s as configured in skipWorkflows", workflow.name)
continue

if wmbsSubscription and wmbsSubscription.get('fileset') and wmbsSubscription['fileset'].name in self.skipFilesets:
logging.info("Skipping fileset %s as configured in skipFilesets", wmbsSubscription['fileset'].name)
continue

if not workflow.task or not wmWorkload:
# Then we have a problem
# We NEED a sandbox
Expand Down