File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,8 +92,10 @@ python-dateutil==2.8.2
9292python-dotenv == 0.20.0
9393pytz == 2022.1
9494PyYAML == 6.0.1
95+ redis == 5.0.1
9596requests == 2.32.0
9697restructuredtext-lint == 1.4.0
98+ rq == 1.15.1
9799saneyaml == 0.6.0
98100semantic-version == 2.9.0
99101six == 1.16.0
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ install_requires =
9494
9595 # pipeline
9696 aboutcode.pipeline>=0.1.0
97+ django-rq ==2.10.1
98+ rq-scheduler ==0.13.1
9799
98100 # vulntotal
99101 python-dotenv
Original file line number Diff line number Diff line change 8484 # required for Django collectstatic discovery
8585 "drf_spectacular_sidecar" ,
8686 "django_recaptcha" ,
87+ "django_rq" ,
8788)
8889
8990RECAPTCHA_PUBLIC_KEY = env .str ("RECAPTCHA_PUBLIC_KEY" , "" )
362363 "handlers" : ["console" ],
363364 "level" : "ERROR" ,
364365 }
366+
367+
368+ VULNERABLECODE_ASYNC = True
369+ VULNERABLECODE_PIPELINE_TIMEOUT = "24h"
370+ RQ_QUEUES = {
371+ "default" : {
372+ "HOST" : env .str ("VULNERABLECODE_REDIS_HOST" , default = "localhost" ),
373+ "PORT" : env .str ("VULNERABLECODE_REDIS_PORT" , default = "6379" ),
374+ "PASSWORD" : env .str ("VULNERABLECODE_REDIS_PASSWORD" , default = "" ),
375+ "DEFAULT_TIMEOUT" : env .int ("VULNERABLECODE_REDIS_DEFAULT_TIMEOUT" , default = 360 ),
376+ }
377+ }
You can’t perform that action at this time.
0 commit comments