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

op-batcher: Shutdown pprof and metrics after main loop returns #5345

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

sebastianst
Copy link
Member

Description

The batcher's main function currently stops pprof and metrics immediately when receiving any stop signal, like SIGINT. This PR swaps the order and let's it first wait for the main loop to return and only then cancel pprof and metrics.

The error from stopping the http server is now also logged.

TODOs

@changeset-bot
Copy link

changeset-bot bot commented Apr 4, 2023

⚠️ No Changeset found

Latest commit: c301829

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Apr 4, 2023

Deploy Preview for opstack-docs canceled.

Name Link
🔨 Latest commit c301829
🔍 Latest deploy log https://app.netlify.com/sites/opstack-docs/deploys/642d9a9eaa91ba0007cdbd4b

Copy link
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

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

Seems like it should work.

@sebastianst sebastianst marked this pull request as ready for review April 5, 2023 10:18
@sebastianst sebastianst requested a review from a team as a code owner April 5, 2023 10:18
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Merging #5345 (5712cee) into develop (21f3afb) will decrease coverage by 3.56%.
The diff coverage is 0.00%.

❗ Current head 5712cee differs from pull request most recent head c301829. Consider uploading reports for the commit c301829 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5345      +/-   ##
===========================================
- Coverage    39.09%   35.54%   -3.56%     
===========================================
  Files          393      238     -155     
  Lines        26144    21638    -4506     
  Branches       838        0     -838     
===========================================
- Hits         10222     7691    -2531     
+ Misses       15141    13204    -1937     
+ Partials       781      743      -38     
Flag Coverage Δ
bedrock-go-tests 35.54% <0.00%> (+0.03%) ⬆️
common-ts-tests ?
contracts-bedrock-tests ?
contracts-tests ?
core-utils-tests ?
dtl-tests ?
fault-detector-tests ?
sdk-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
op-batcher/batcher/batch_submitter.go 0.00% <0.00%> (ø)

... and 158 files with indirect coverage changes

@mergify
Copy link
Contributor

mergify bot commented Apr 5, 2023

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Apr 5, 2023

This PR is next in line to be merged, and will be merged as soon as checks pass.

@OptimismBot OptimismBot merged commit 46a7b66 into develop Apr 5, 2023
@OptimismBot OptimismBot deleted the batcher-late-ctx-cancel branch April 5, 2023 16:17
@mergify mergify bot removed the on-merge-train label Apr 5, 2023
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

3 participants