Skip to content

Commit

Permalink
Increase REQUEST_TIMEOUT to 15
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <jyang@nexb.com>
  • Loading branch information
JonoYang committed Jun 21, 2023
1 parent 0de3b24 commit f6c7fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecode/management/scanning.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
SLEEP_WHEN_EMPTY = 1

# in seconds
REQUEST_TIMEOUT = 3
REQUEST_TIMEOUT = 15

# Only SCANCODEIO_URL can be provided through setting
SCANCODEIO_URL = settings.SCANCODEIO_URL
Expand Down Expand Up @@ -383,7 +383,7 @@ def process_scans(cls, exit_on_empty=False, max_uris=0, **kwargs):

while True:
# Wait before processing anything
time.sleep(REQUEST_TIMEOUT)
time.sleep(3)

if cls.MUST_STOP:
cls.logger.info('Graceful exit of the scan processing loop.')
Expand Down

0 comments on commit f6c7fbe

Please sign in to comment.