-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add a documented way to select finished ecto queue jobs #96
Comments
Hey there. :) What's your ideal API look like for this? An SQL fragment, or a function that adds a |
Maybe a macro you can use in a query
|> where([x], honeydew_is_finished(x, :classify_photos) and x.enabled == true) It could expand into a right fragment. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to select all items that have been successfully processed by honeydew, I guessed by looking at the source code that I can use
where([x], is_nil(x.honeydew_whatever_lock))
to do this, but this couples my code tightly against honeydew implementation details, I'd like a more "official" or "public" way to achieve this.honeydew/lib/honeydew/sources/ecto_source.ex
Lines 8 to 14 in b60b639
A documented way to select jobs in a different state would be nice too, but this is not something I'm struggling with currently.
The text was updated successfully, but these errors were encountered: