fix: graceful shutdown on watch/cache#4546
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4546 +/- ##
==========================================
+ Coverage 89.68% 89.70% +0.02%
==========================================
Files 9 9
Lines 1396 1399 +3
Branches 445 447 +2
==========================================
+ Hits 1252 1255 +3
Misses 144 144
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
alexander-akait
left a comment
There was a problem hiding this comment.
We should include this in the next major release, not now, and please add a test case
|
Still wip, need to send a sigterm signal whenever. |
14d14cd to
4167dc8
Compare
4167dc8 to
f29d6e8
Compare
| ]); | ||
| proc.stdout.on("data", (chunk) => { | ||
| const data = chunk.toString(); | ||
| if (data.includes("app.bundle.js")) { |
There was a problem hiding this comment.
after compile is done and we got an async plugin the sigterm is invoked while we're in the child process without an infinite loop fyi @alexander-akait
| mode: "development", | ||
| name: "graceful-exit-test", | ||
| cache: { | ||
| type: "filesystem", |
There was a problem hiding this comment.
Might need to specify cache.type in the check at isFileSystemCacheEnabled
|
@alexander-akait PTAL before new release. |
|
superseeded by #4625 |
What kind of change does this PR introduce?
#3075
Did you add tests for your changes?
TBD
If relevant, did you update the documentation?
TBD
Summary
Does this PR introduce a breaking change?
No
Other information
Need to add tests.