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

progress indicator for populate_daily_metrics #228

Merged
merged 1 commit into from
Jun 26, 2020

Conversation

thraxil
Copy link
Contributor

@thraxil thraxil commented Jun 22, 2020

This is a simple quality of life improvement.

The daily pipeline takes a long time to run, and currently gives no indication of how far along in the process it is.

Adding a log message like this means that I can quickly tail the logs and form a ballpark estimate of how much longer it will be running. Eg, if we want to deploy (which we need to stop the pipeline for currently), seeing that it's at 1995 of 2000, I'd be inclined to just wait a few minutes for it to finish rather than stop the pipeline, deploy, and restart it.

Similarly, if it's been running for 12 hours and we see that it's only made it 10% of the way through, that would indicate that there's a bug or some issue slowing it down and we need to stop the pipeline and investigate before the next day's pipeline starts running and things get even worse.

This is a simple quality of life improvement.

The daily pipeline takes a long time to run, and currently gives no
indication of how far along in the process it is.

Adding a log message like this means that I can quickly tail the logs
and form a ballpark estimate of how much longer it will be
running. Eg, if we want to deploy (which we need to stop the pipeline
for currently), seeing that it's at 1995 of 2000, I'd be inclined to
just wait a few minutes for it to finish rather than stop the
pipeline, deploy, and restart it.

Similarly, if it's been running for 12 hours and we see that it's only
made it 10% of the way through, that would indicate that there's a bug
or some issue slowing it down and we need to stop the pipeline and
investigate before the next day's pipeline starts running and things
get even worse.
@thraxil thraxil marked this pull request as ready for review June 22, 2020 15:16
Copy link
Contributor

@johnbaldwin johnbaldwin left a comment

Choose a reason for hiding this comment

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

Thanks! Great addition!

@codecov-commenter
Copy link

codecov-commenter commented Jun 22, 2020

Codecov Report

Merging #228 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #228   +/-   ##
=======================================
  Coverage   91.28%   91.29%           
=======================================
  Files          38       38           
  Lines        1951     1953    +2     
=======================================
+ Hits         1781     1783    +2     
  Misses        170      170           
Impacted Files Coverage Δ
figures/tasks.py 84.37% <100.00%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0f6061...0a2acc4. Read the comment docs.

Copy link
Contributor

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

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

Nice!

@thraxil thraxil merged commit 8bc1acd into master Jun 26, 2020
@OmarIthawi OmarIthawi deleted the populate-daily-metrics-progress-indicator branch June 26, 2020 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants