Skip to content

Commit

Permalink
requeue failed requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Basov committed Oct 15, 2023
1 parent 8f1d175 commit dccd104
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fetcher/application_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ async def _process_request(self, message, request_type):

except Exception as e:
logger.error("%s Error processing request: %s", log_prefix, e)
self.metrics_collector.record_fetch_status("failed")
queue_name = "ApplicationFetchQueue" if request_type == "fetch" else "RefreshStatusQueue"
await self._manage_failed_request(message, queue_name)
finally:
await self.end_processing(request_type, number, type_, year)

Expand Down

0 comments on commit dccd104

Please sign in to comment.