Skip to content

Don't send updates to myMdC when all jobs are pending

Thomas Kluyver requested to merge websvc-fewer-mymdc-updates into master

Description

We are hitting rate limits for requests to myMdC. We believe this is at least partly down to report jobs waiting in a queue, because we still update myMdC for each run every 60 seconds, until calibration for that run finishes. This aims to cut the requests we send to myMdC:

  • Skip updating the status for runs when all jobs are pending - these updates are not very informative anyway.
  • When correction finishes, update the status with 1 request instead of 2.

How Has This Been Tested?

Deployed on max-exfl017, recalibrated some runs from test proposal, checked that status updates still show up as expected.

Screenshot_from_2021-11-09_11-40-31

image

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.

Reviewers

@danilevc @schmidtp

Edited by Thomas Kluyver

Merge request reports