GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — Shutdown option `WaitForProcessing` never entered on subscription close · Issue #2117 · googleapis/nodejs-pubsub
This repository was archived by the owner on Oct 21, 2026. It is now read-only.
This repository was archived by the owner on Oct 21, 2026. It is now read-only.
Shutdown option |
| if ( | |
| behavior === SubscriberCloseBehaviors.WaitForProcessing && | |
| !this._inventory.isEmpty | |
| ) { |
this._inventory.isEmpty seems to be undefined and would need to be changed to this._inventory.isEmpty() as also suggested in the comment of the PR originally introducing this functionality: #2068 (review)
It seems that with this bug, the waitForProcessing graceful shutdown feature introduced with #2068 is not working as expected and the shutdown behavior is never initiated.
The WaitForProcessing closeOption was recently introduced in version 5.2.0 with #2068. In the supplied tests, the isEmpty field check is set on test level, hence letting the tests pass. However, in the source code of