8000 Investigate the use of Python Celery for API job queueing · Issue #1037 · OWASP/Nettacker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Investigate the use of Python Celery for API job queueing #1037

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

Open
securestep9 opened this issue Mar 7, 2025 · 1 comment
Open

Investigate the use of Python Celery for API job queueing #1037

securestep9 opened this issue Mar 7, 2025 · 1 comment

Comments

@securestep9
Copy link
Collaborator

at the moment, Nettacker is using Python multi-threading for API tasks, which is not very scalable. It would be good to replace it with a proper task queue system that can handle retires/tracking/background jobs and scheduled jobs. Something like RabbitMQ is probably overkill for now, but Celery is an interesting and widely used Python-based task queue that can be used to improve Nettacker

@drona-gyawali
Copy link

I completely agree that moving from Python multithreading to a proper task queue like Celery would significantly improve Nettacker’s scalability and maintainability.

As you mentioned, RabbitMQ might be overkill at this stage. I’d suggest using Redis as the message broker it's lightweight, easy to deploy, and integrates seamlessly with Celery. One of the advantages of Celery is that it abstracts the broker layer well, so switching to RabbitMQ in the future would just require changing CELERY_BROKER_URL no major code changes needed.

To be transparent, I haven’t forked the repo yet but I’m very interested in contributing. I noticed the Celery discussion and wanted to jump in because I recently worked on something similar: implementation of a ticket queue in Supportix It involves agent availability checks, fallback queuing, and task delegation using Celery + Redis. I believe the core idea can align well with Nettacker’s goals too.

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

No branches or pull requests

2 participants
0