Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enqueue background tasks #151

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft

Enqueue background tasks #151

wants to merge 16 commits into from

Conversation

glujan
Copy link
Owner

@glujan glujan commented Dec 31, 2024

No description provided.

@glujan glujan changed the title Use priority queue Enqueue background tasks Dec 31, 2024
# @suppress_errors(httpx.HTTPError, PermissionError)
def _prepare_download_url(
self, product: Product, item: DownloadItem
) -> tuple[bool, DownloadUrlResponse | None]:
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Messy to return such a tuple. Maybe use enumeration instead of a bool to better indicate status?

@glujan glujan force-pushed the Use-priority-queue branch from 7dd8c2a to 20341d7 Compare January 2, 2025 15:19
@glujan glujan force-pushed the Use-priority-queue branch 8 times, most recently from 60ab69d to 1a851b5 Compare January 2, 2025 21:26
@glujan glujan force-pushed the Use-priority-queue branch from 1a851b5 to a7acaec Compare January 2, 2025 21:30
@glujan glujan force-pushed the Use-priority-queue branch from c5a9bb0 to f4c25b5 Compare January 2, 2025 21:42
Copy link

sonarqubecloud bot commented Jan 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant