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

Switch to rabbitmq based task queue #2199

Merged
merged 25 commits into from
Aug 5, 2022
Merged

Switch to rabbitmq based task queue #2199

merged 25 commits into from
Aug 5, 2022

Conversation

sunu
Copy link
Contributor

@sunu sunu commented Apr 5, 2022

No description provided.

aleph/worker.py Outdated
Comment on lines 43 to 44
def op_index(collection_id, batch, worker=None):
collection = Collection.by_id(collection_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you still ensuring that all the documents in the whole batch are from the same collection? I would consider sending the collection as a dict as part of the indexing requests pretty soon after making this change, I think it'll be a perf game changer...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pudo So we want to batch indexing tasks irrespective of collection?

@sunu sunu marked this pull request as ready for review May 27, 2022 07:47
@sunu sunu changed the title WIP: switch to rabbitmq based task queue Switch to rabbitmq based task queue Aug 5, 2022
@sunu sunu merged commit edb810f into develop Aug 5, 2022
@sunu sunu deleted the sunu/rabbitmq branch September 27, 2022 05:51
@catileptic catileptic restored the sunu/rabbitmq branch September 21, 2023 14:23
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.

2 participants