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

Include days spent in collection phase logs #623

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

jjmerchante
Copy link
Contributor

When the collection phase is finished and the spent time is more than one day, days are missing in the logs. It is now fixed and included in the logs.

@@ -74,7 +75,7 @@ def execute(self):
logging.info('%s collect disabled', self.backend_section)
return errors

t2 = time.time()
time_start = datetime.now()
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't be better to use the datetime_utcnow() from grimoirelab_toolkit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The enrichment was using datetime.datetime.now() to calculate the spent time, that's why I used the same. I updated it to use datetime_utcnow(), should I update the enrichment to use datetime_utcnow()?

When the collection phase is finished and the spent time
is more than one day, days are missing in the logs. It is
now fixed and included in the logs.

Signed-off-by: Jose Javier Merchante <[email protected]>
@jjmerchante jjmerchante force-pushed the collection-spent-time branch from 3a0ff9b to f5a2602 Compare July 31, 2024 07:05
Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

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

LGTM

@sduenas sduenas merged commit 08073db into chaoss:master Jul 31, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Delivered
Development

Successfully merging this pull request may close these issues.

2 participants