-
Notifications
You must be signed in to change notification settings - Fork 15
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
Use miliseconds for statistics #43
base: main
Are you sure you want to change the base?
Conversation
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.
There's quite a bit going on here, but i'm 👍 and the tests look solid.
src/Storage/Doctrine/Connection.php
Outdated
$table->addColumn('dispatched_at', Types::FLOAT)->setNotnull(true); | ||
$table->addColumn('waiting_time', Types::FLOAT)->setNotnull(false); | ||
$table->addColumn('handling_time', Types::FLOAT)->setNotnull(false); | ||
$table->addColumn('failing_time', Types::FLOAT)->setNotnull(false); |
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.
Just an FYI for us, this will require a migration - iirc, make:migration
will see this changes, but it's been awhile so I'm not 100% sure.
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 like you can backfill these new columns, as they are calculated from the existing ones?
the existing ones can then be dropped
@bendavies now that CI is running, there's one tiny failure related to precision. Can you have a look? |
Interesting. That didn't happen on the original pr |
looks like this is due to floating point calculations in mariadb i'll see if switching the column types from float to decimal fixes this. |
5648987
to
ae900bf
Compare
using decimals has fixed the tests |
store waiting_time in seconds+microseconds store handling_time in seconds+microseconds store failing_time in seconds+microseconds Fixed statistics computing Handle micro/milli seconds in twig time filter Tested retry behavior Fixed waiting_time for messages with delay
469c5b4
to
1fed242
Compare
This is a rebased submission of #27
fixes #20
fixes #17
fixes #25
TODO: