mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-08-23 22:32:24 +02:00
18 lines
574 B
Python
18 lines
574 B
Python
from django.apps import AppConfig
|
|
from reNgine.definitions import logger
|
|
|
|
|
|
class StartscanConfig(AppConfig):
|
|
name = 'startScan'
|
|
|
|
def ready(self):
|
|
'''
|
|
Any Scans that were incomplete in the last scan, we will mark them failed after
|
|
server restarted
|
|
This does not include pending_scans, pending_scans are taken care by celery
|
|
'''
|
|
pass
|
|
# logger.info('Cancelling all the ongoing scans')
|
|
# ScanHistory = self.get_model('ScanHistory')
|
|
# ScanHistory.objects.filter(scan_status=1).update(scan_status=0)
|