Use isAffirmative for GRIST_MANAGED_WORKERS #831

pull/856/head
Florent 4 months ago committed by fflorent
parent b9b15db092
commit cf88f15b81

@ -1939,7 +1939,7 @@ export class FlexServer implements GristServer {
}
await workers.addWorker(this.worker);
await workers.setWorkerAvailability(this.worker.id, true);
if (!process.env.GRIST_MANAGED_WORKERS) {
if (!isAffirmative(process.env.GRIST_MANAGED_WORKERS)) {
this._unsubscribeWorkerUnavailableListener = workers.onWorkerUnavailable(this.worker, async () => {
log.info("DocWorker became unavailable, shutting down");
await this._shutdown();

Loading…
Cancel
Save