ar-io / ar-io-node

A scalable and modular gateway built for the permaweb atop the Arweave permanent data storage network.
https://ar.io
GNU Affero General Public License v3.0
97 stars 65 forks source link

feat(system): graceful shutdown #86

Closed karlprieb closed 8 months ago

karlprieb commented 8 months ago

Implement stop methods to clear queues and stop workers in the following components:

Through a shutdown function it will close express server and wait for all these componenets/workers to stop.

codecov[bot] commented 8 months ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (c6c48f5) 58.85% compared to head (9dd100c) 58.67%.

Files Patch % Lines
src/lib/ans-104.ts 12.50% 14 Missing :warning:
src/workers/ans104-unbundler.ts 25.00% 6 Missing :warning:
src/workers/bundle-data-importer.ts 28.57% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #86 +/- ## =========================================== - Coverage 58.85% 58.67% -0.19% =========================================== Files 21 21 Lines 5982 6023 +41 Branches 285 286 +1 =========================================== + Hits 3521 3534 +13 - Misses 2457 2485 +28 Partials 4 4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.