Skip to content
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

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Mar 1, 2022

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]

@antoniivanov
Copy link
Collaborator

Currently, if for some reason the end_time field of the execution object is not a string

Can you describe in a bit more details with example? Why would not be a string (I guess it can be None).

@doks5 doks5 force-pushed the person/andonova/fix-heartbeat-bug branch from aa986b3 to 6b7b79e Compare March 1, 2022 17:39
@doks5
Copy link
Contributor Author

doks5 commented Mar 1, 2022

Currently, if for some reason the end_time field of the execution object is not a string

Can you describe in a bit more details with example? Why would not be a string (I guess it can be None).

I've added a clarification.

@doks5 doks5 force-pushed the person/andonova/fix-heartbeat-bug branch 2 times, most recently from 6c0994a to 646de0b Compare March 1, 2022 19:29
@doks5 doks5 requested a review from antoniivanov March 7, 2022 07:04
@doks5 doks5 force-pushed the person/andonova/fix-heartbeat-bug branch 2 times, most recently from ef432e7 to 0661318 Compare March 8, 2022 12:05
@doks5 doks5 force-pushed the person/andonova/fix-heartbeat-bug branch from 0661318 to d21d56c Compare March 8, 2022 15:34
@doks5 doks5 force-pushed the person/andonova/fix-heartbeat-bug branch from d21d56c to e18b96b Compare March 8, 2022 15:51
@doks5 doks5 force-pushed the person/andonova/fix-heartbeat-bug branch from e18b96b to 965da04 Compare March 8, 2022 16:02
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]>
@doks5 doks5 force-pushed the person/andonova/fix-heartbeat-bug branch from 965da04 to 2beff60 Compare March 8, 2022 16:07
@doks5 doks5 merged commit b1634d1 into main Mar 8, 2022
@doks5 doks5 deleted the person/andonova/fix-heartbeat-bug branch March 8, 2022 16:15
antoniivanov pushed a commit that referenced this pull request Mar 16, 2022
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants