pylint formatting
This commit is contained in:
parent
a30b358709
commit
8b9f9478a4
3 changed files with 20 additions and 13 deletions
|
@ -8,12 +8,15 @@ from app import secscan_notification_queue, secscan_api
|
|||
from workers.queueworker import QueueWorker, JobException
|
||||
from util.secscan.notifier import process_notification_data
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
_READING_SECONDS = 120 # 2 minutes
|
||||
_PROCESSING_SECONDS = 60 * 60 # 1 hour
|
||||
_LAYER_LIMIT = 100 # The number of layers to request on each page.
|
||||
|
||||
|
||||
class SecurityNotificationWorker(QueueWorker):
|
||||
def process_queue_item(self, data):
|
||||
self.perform_notification_work(data)
|
||||
|
|
Reference in a new issue