We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2c7ed commit 086717eCopy full SHA for 086717e
dje/management/commands/cronjobs.py
@@ -21,6 +21,8 @@
21
import django_rq
22
from rq.cron import CronScheduler
23
24
+from dje.tasks import update_vulnerabilities
25
+
26
27
class Command(BaseCommand):
28
help = (
@@ -44,7 +46,13 @@ def start_scheduler(self, connection):
44
46
cron = CronScheduler(connection=connection, logging_level="INFO")
45
47
48
# Register jobs
- cron.register(print, queue_name="default", cron="* * * * *")
49
+ # cron.register(print, queue_name="default", cron="* * * * *")
50
+ cron.register(
51
+ func=update_vulnerabilities,
52
+ queue_name="default",
53
+ # cron=settings.DEJACODE_VULNERABILITIES_CRON, # 3am daily by default
54
+ cron="0 * * * *", # Every hour
55
+ )
56
57
# Start the scheduler (this will block until interrupted)
58
try:
0 commit comments