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

Bug 1727076 - Have PingUploadWorker sleep in case it gets a Wait task #994

Merged
merged 7 commits into from Dec 8, 2021

Conversation

brizental
Copy link
Member

@brizental brizental commented Nov 26, 2021

Pull Request checklist

  • Quality: Make sure this PR builds and runs cleanly.
    • Inside the glean/ folder, run:
      • npm run test Runs all tests
      • npm run lint Runs all linters
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry to CHANGELOG.md or an explanation of why it does not need one
  • Documentation: This PR includes documentation changes, an explanation of why it does not need that or a follow-up bug has been filed to do that work

@auto-assign auto-assign bot requested a review from travis79 November 26, 2021 17:47
@brizental brizental removed the request for review from travis79 November 26, 2021 17:56
@brizental brizental marked this pull request as draft November 26, 2021 17:56
@brizental brizental marked this pull request as ready for review December 7, 2021 13:21
@auto-assign auto-assign bot requested a review from chutten December 7, 2021 13:21
Copy link
Contributor

@chutten chutten left a comment

Choose a reason for hiding this comment

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

Comments and questions, but nothing that'd stop this from landing.

glean/src/core/upload/worker.ts Show resolved Hide resolved
glean/src/core/upload/worker.ts Show resolved Hide resolved
glean/src/core/upload/worker.ts Show resolved Hide resolved
glean/tests/unit/core/upload/worker.spec.ts Outdated Show resolved Hide resolved
glean/tests/unit/core/upload/worker.spec.ts Show resolved Hide resolved
glean/tests/unit/core/upload/worker.spec.ts Show resolved Hide resolved
This was causing a bug in case the workInternal function was faster than
actually setting the currentJob property e.g. when there was only a Done
task to process. In that case the currentJob would never be cleared and
the worker would never be restarted.
@brizental brizental merged commit dc4b6a5 into mozilla:main Dec 8, 2021
@brizental brizental deleted the 1727076-wait-on-timer branch December 8, 2021 10:16
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.

None yet

2 participants