-
Notifications
You must be signed in to change notification settings - Fork 59
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
vdk-heartbeat: Handle execution end_time not string #750
Conversation
Can you describe in a bit more details with example? Why would not be a string (I guess it can be None). |
projects/vdk-heartbeat/src/vdk/internal/heartbeat/job_controller.py
Outdated
Show resolved
Hide resolved
aa986b3
to
6b7b79e
Compare
I've added a clarification. |
projects/vdk-heartbeat/src/vdk/internal/heartbeat/job_controller.py
Outdated
Show resolved
Hide resolved
6c0994a
to
646de0b
Compare
projects/vdk-heartbeat/src/vdk/internal/heartbeat/job_controller.py
Outdated
Show resolved
Hide resolved
ef432e7
to
0661318
Compare
projects/vdk-heartbeat/src/vdk/internal/heartbeat/job_controller.py
Outdated
Show resolved
Hide resolved
0661318
to
d21d56c
Compare
d21d56c
to
e18b96b
Compare
projects/vdk-heartbeat/src/vdk/internal/heartbeat/job_controller.py
Outdated
Show resolved
Hide resolved
e18b96b
to
965da04
Compare
Currently, if for some reason the `end_time` field of the execution object is not a string (for example, the value is `None`), the `datetime.fromisoformat()` method throws an exception and fails the heartbeat test. This change introduces an explicit conversion of the value to string and adds logging for what the error is along with indication that the heartbeat will fail. Testing Done: Unit tests added. Signed-off-by: Andon Andonov <[email protected]>
965da04
to
2beff60
Compare
Currently, if for some reason the `end_time` field of the execution object is not a string (for example, the value is `None`), the `datetime.fromisoformat()` method throws an exception and fails the heartbeat test. This change introduces an explicit conversion of the value to string and adds logging for what the error is along with indication that the heartbeat will fail. Testing Done: Unit tests added. Signed-off-by: Andon Andonov <[email protected]>
Currently, if for some reason the
end_time
field of the execution objectis not a string (for example, the value is
None
), thedatetime.fromisoformat()
method throws an exception and fails the heartbeat test.
This change introduces an explicit conversion of the value to string and adds
logging for what the error is along with indication that the heartbeat will fail.
Testing Done: Unit tests added.
Signed-off-by: Andon Andonov [email protected]