Skip to content

Commit

Permalink
Increase tiemout
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Sep 13, 2023
1 parent c352098 commit 253a772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion converters/pdf/tn_pdf_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def add_gl_quotes_to_tsv(self, tsv_filepath: str) -> None:
]
cmd = ' '.join(args)
self.log.info(f'Running `{cmd}` in add_gl_quote_to_tsv')
ret = subprocess.call(cmd, shell=True, cwd=os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'add_gl_quotes_to_tsv'), timeout=3600)
ret = subprocess.call(cmd, shell=True, cwd=os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'add_gl_quotes_to_tsv'), timeout=36000)
if ret:
self.log.error('Error running add_gl_quote_to_tsv/add_gl_quote_to_tsv.js. Exiting.')

Expand Down
2 changes: 1 addition & 1 deletion converters/tsv2html_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def add_gl_quotes_to_tsv(self, tsv_filepath: str) -> None:
cmd = ' '.join(args)
self.log.info(f'Running `{cmd}` in add_gl_quote_to_tsv')
ret = subprocess.call(
cmd, shell=True, cwd=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'add_gl_quotes_to_tsv'), timeout=3600)
cmd, shell=True, cwd=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'add_gl_quotes_to_tsv'), timeout=36000)
if ret:
self.log.error('Error running add_gl_quote_to_tsv/add_gl_quote_to_tsv.js. Exiting.')

Expand Down
2 changes: 1 addition & 1 deletion webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def job(queued_json_payload:Dict[str,Any]) -> None:
empty_folder('/tmp/', only_prefix='tX_') # Stops failed jobs from accumulating in /tmp

# AppSettings.logger.info(f"Updating queue statistics…")
our_queue= Queue(webhook_queue_name, connection=get_current_job().connection, default_timeout=(60*60*3))
our_queue= Queue(webhook_queue_name, connection=get_current_job().connection, default_timeout=(60*60*60))
len_our_queue = len(our_queue) # Should normally sit at zero here
# AppSettings.logger.debug(f"Queue '{webhook_queue_name}' length={len_our_queue}")
stats_client.gauge(f'{enqueue_job_stats_prefix}.queue.length.current', len_our_queue)
Expand Down

0 comments on commit 253a772

Please sign in to comment.