Any way to define a step as a queue? #145
Replies: 1 comment 1 reply
-
Hey again! Currently pgflow does not support processing arrays like this, but this is very wanted and planned feature. I recommend keeping your handlers reusable (check this guide) so it will be easy to migrate when i implement this feature (it is coming!). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @jumski , glad to here be again!
I'm tring to move my single worker code to pgflow.
In the "old" implementation I've managed concurrency in the following way, by chunking first in my API and then with a trigger on the table that pushes the single chunk ID in the
embeddings-tasks
queue:II saw that the complete flow runs inside a single worker (as it should be), my question is: how can I have a step that replicates the previous behavior? The embed step must take n chunks from the db (with the ids coming from analyze) and reprocess them in groups. I imagine that if there are many, the worker will incur in wall time and fails, do you think it makes sense to use this mechanism to continue processing until they are all completed? Are there better solutions that I can use?
Thanks again for your work.
Beta Was this translation helpful? Give feedback.
All reactions