Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Results dictionary should contain a timestamp now #514

Closed
wants to merge 1 commit into from

Conversation

MMuschner
Copy link
Contributor

@MMuschner MMuschner commented Nov 29, 2021

This PR aims to add the execution_datetime of the checks execution to the result dictionary. This is useful to know when were the current checks execute. This is the first part of the implementation to fix #467.

Comment on lines +283 to +289
def _return_timestamp(self):
"""
Return a timestamp
"""
timestap = datetime.now().strftime("%H:%M:%S")
return timestamp

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't we suppose to use this function somewhere? Or it's just a conventional callback?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an entrypoint, babysteps

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, I thought this was ready for the review, sorry 😄 if you want you can mark PRs as draft to make explicit that it's still an ongoing effort 👍

Return a timestamp
"""
timestap = datetime.now().strftime("%H:%M:%S")
return timestamp
Copy link
Member

@fabriziosestito fabriziosestito Nov 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: timestap

@arbulu89
Copy link
Contributor

arbulu89 commented Nov 29, 2021

Hey @MMuschner ,
We will need a bit more than this hehe

  • The obtained timestamp must be added to the dictionary that is sent to ara somewhere.
  • Add the timestamp like year-month-day hour:minutes:seconds

PD: As always, try to add more information in the PR description. Something like

This PR aims to add the `execution_datetime` of the checks execution to the result dictionary. This is useful to know when were the current checks execute. This is the 1st part of the implementation to fix #467.
In next PRs, the current data will be used in the web part

Something like that. Keep in mind that the description is the entry point for the reviewer

PD2:
If the PR is not ready for review yet, put it as Draft this will help the reviewers to know if this is still something partial

@arbulu89
Copy link
Contributor

@MMuschner Other thing. Be careful linking issues to PRs. Linking means that once the PR is closed, the issue is closed as well.
This is useful when the PR completely fixes/implements the thing in the issue, but if you have partial implementations, it is a risky movement, as the issue will go away but it is not finished yet.
PD: I cannot unlink now the issue, maybe you can (or maybe it is a bug in GH side)

@stefanotorresi
Copy link
Member

It's been too long. Thanks for the effort anyway, Mike!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add last execution time to the checks
5 participants