-
Notifications
You must be signed in to change notification settings - Fork 0
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
Make the polling interval configurable. #170
Conversation
7ff32f3
to
9b76b7c
Compare
9b76b7c
to
80390b1
Compare
225fe2f
to
ea0f02b
Compare
Don't forget to follow conventional commit when adding this new config 😉 (aka breaking change) |
The link is fixed. |
@fd0r Thanks for highlighting this could be a breaking change. I guess, i can make this a more soft change by adding a default value for The other config already has a default. Both values fallback to default, if not configured. I guess, this makes it not a breaking change ??? |
- Previously, the value was hardcoded to 5000ms. This could lead to long wait between processing jobs and hence a delay in result being available in the coprocessor db. - Now, make this interval configurable via command line argument. Can be fine tuned as per needed performance.
- Currently, this value is hardcoded to 10s. This could be too long, leading to artificial delay in the ciphertext being available in the coprocessor db. - Now, make it configurable via environment variable.
de9d400
to
59ef973
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I just asked @goshawk-3 to check the select!
statement as we discussed it, but maybe he got deeper on that.
This versioning scheme is more aligned with fhevm versioning scheme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran the integration tests of fhevm-devops with it and it worked
feat: make coprocessor sync interval configurable
Currently, this value is hardcoded to 10s. This could be too long,
leading to artificial delay in the ciphertext being available in the
coprocessor db.
Now, make it configurable via environment variable.
feat: make worker job polling interval config
Previously, the value was hardcoded to 5000ms. This could lead to long
wait between processing jobs and hence a delay in result being
available in the coprocessor db.
Now, make this interval configurable via command line argument. Can be
fine tuned as per needed performance.
chore: bump version to v0.1.2
Closes #169