Skip to content

Standardize cronjob HTTP fetchers with a shared client wrapper #1214

@rootp1

Description

@rootp1

At the moment, our backend cronjobs and feed fetchers rely on adhoc 'requests' calls, with each file handling timeouts and errors in its own way.
In this issue, I am wanting to propose gradually migrating to httpx, starting with a small set of fetchers and expanding over time rather than attempting a large, one shot rewrite.

httpx provides a modern, flexible API with built-in support for both sync and async usage, allowing us do this without changing behavior today.

It offers more structured timeout handling and a clearer exception hierarchy.
Additionally, it makes it easier to build a shared HTTP client wrapper, reducing duplication and improving scalability of our cronjobs.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpythonPull requests that update Python code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions