def _skip_filtered(self, work_db, exclude_operators):
    if (not exclude_operators):
        return
    re_exclude_operators = re.compile('|'.join((('(:?%s)' % e) for e in exclude_operators)))
    for item in work_db.pending_work_items:
        if re_exclude_operators.match(item.operator_name):
            log.info('operator skipping %s %s %s %s %s %s', item.job_id, item.operator_name, item.occurrence, item.module_path, item.start_pos, item.end_pos)
            work_db.set_result(item.job_id, WorkResult(output='Filtered operator', worker_outcome=WorkerOutcome.SKIPPED))
def _skip_filtered(self, work_db, exclude_operators):
    if (not exclude_operators):
        return
    re_exclude_operators = re.compile('|'.join((('(:?%s)' % e) for e in exclude_operators)))
    for item in work_db.pending_work_items:
        if re_exclude_operators.match(item.operator_name):
            log.info('operator skipping %s %s %s %s %s %s', item.job_id, item.operator_name, item.occurrence, item.module_path, item.start_pos, item.end_pos)
            work_db.set_result(item.job_id, WorkResult(output='Filtered operator', worker_outcome=WorkerOutcome.SKIPPED))