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

DM-33854: Introduce heartbeat logs in ApplyApCorr #203

Merged
merged 1 commit into from Mar 2, 2022

Conversation

arunkannawadi
Copy link
Member

This introduces some heartbeat logs in the aperture correction task, since it could take a couple of silent hours otherwise to finish the task.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Looks good to me.

# Log a message if it has been a while since the last log.
if (currentTime := time.time()) > nextLogTime:
self.log.verbose("Aperture corrections applied to %d sources out of %d",
sourceIndex + 1, len(catalog))
Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks Tim! I just changed sourceIndex to sourceIndex + 1 to start the counting from 1.

@arunkannawadi arunkannawadi merged commit 50b3b36 into main Mar 2, 2022
@arunkannawadi arunkannawadi deleted the tickets/DM-33854 branch March 2, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants