refactor: Implement Celery Tasks with Redis and RabbitMQ Integration" #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Implementation of Celery Tasks:
tasks_collectors.py
andtasks_async.py
, have been added to the project to implement Celery tasks for asynchronous data collection and processing.tasks_collectors.py
module defines synchronous Celery tasks responsible for simulating data collection from subcollectors, aggregating results, performing cleanup, and final processing.tasks_async.py
module extends the functionality by introducing asynchronous Celery tasks to handle data processing in a distributed and scalable manner.Proposal of Test Cases:
tests
directory contains test files (test_tasks_collectors.py
andtest_tasks_async.py
) to validate the functionality of the Celery tasks defined in the respective modules.test_tasks_collectors.py
validate synchronous Celery tasks, while test cases intest_tasks_async.py
focus on asynchronous task behavior, leveraging asyncio for testing concurrency and scalability.Integration with Redis and RabbitMQ: