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

--pager-persisters=async with aliases #1896

Open
kezek opened this issue Dec 12, 2022 · 3 comments
Open

--pager-persisters=async with aliases #1896

kezek opened this issue Dec 12, 2022 · 3 comments

Comments

@kezek
Copy link

kezek commented Dec 12, 2022

Hey guys.

Nice job with the Symfony Messenger integration , works well , but I'm having an issue with aliases.

When I'm running the populate job I've got downtime (empty nodes which I didn't had previously , without async) and I'm not really sure what's the approach in avoiding that downtime.

Resetting X
Refreshing X

Resetting Y
Refreshing Y

I know I can use --no-reset to avoid refreshing , but how would I force a refresh considering that the populate is now async ?

Thanks and hopefully I was clear.

@boskos-q
Copy link

boskos-q commented Feb 9, 2023

I'm not sure that you can achieve that due to the whole async approach. It first resets the index, then queues all populates via messenger, and then messenger starts consuming.
I'm afraid there is no way to do reset of the index before messenger starts consuming messages and re-populates your index.
One thing that I'm using is passing an --index=<index_name> --pager-persister=async and thus reseting single index, tho I assume you don't want to run manually command for each index, but rather to re-populate all indexes at once.

@vladdnepr
Copy link

Same issue...

@vladdnepr
Copy link

Hi. I found a solution

https://gist.github.com/vladdnepr/728e1b7b428923443f25d06984034f7a

Hope this helps

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

3 participants