@sjcrh/proteinpaint-server 2.30.2 → 2.30.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/routes/gdc.maf.ts +5 -3
- package/routes/gdc.mafBuild.ts +5 -0
- package/server.js +1 -1
- package/src/serverconfig.js +11 -0
package/src/serverconfig.js
CHANGED
|
@@ -178,6 +178,17 @@ if (!serverconfig.features) {
|
|
|
178
178
|
// mdjsonform: true, healthcheck_keys: ["w", "rs"], etc.
|
|
179
179
|
serverconfig.features = {}
|
|
180
180
|
}
|
|
181
|
+
if (process.argv.find(a => a == 'validate')) {
|
|
182
|
+
// issues in the GDC API (like its servers being under maintenance) should not affect
|
|
183
|
+
// the ability of the PP server to launch itself, so skip GDC-caching during validation
|
|
184
|
+
// as the GDC API may come online later (and not require a PP server restart).
|
|
185
|
+
// This allows `npx @sjcrh/proteinpaint-server validate` to finish faster.
|
|
186
|
+
//
|
|
187
|
+
// NOTE: The server validation waits for the nodejs main thread to finish, so any unfinished
|
|
188
|
+
// async methods will still block the validation. Only other async methods are not blocked
|
|
189
|
+
// by each other while executing.
|
|
190
|
+
serverconfig.features.stopGdcCacheAliquot = true
|
|
191
|
+
}
|
|
181
192
|
|
|
182
193
|
if (!serverconfig.backend_only && fs.existsSync(path.join(process.cwd(), './public'))) {
|
|
183
194
|
const defaultTarget = path.join(serverconfig.binpath, 'cards')
|