@platformatic/watt-extra 1.1.1-alpha.1 → 1.2.0
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/plugins/metadata.js +0 -7
- package/test/spawn.test.js +1 -1
package/package.json
CHANGED
package/plugins/metadata.js
CHANGED
|
@@ -42,14 +42,7 @@ async function metadata (app, _opts) {
|
|
|
42
42
|
)
|
|
43
43
|
)
|
|
44
44
|
|
|
45
|
-
setInterval(async () => {
|
|
46
|
-
const runtimeConfig = await runtime.getRuntimeConfig()
|
|
47
|
-
const verticalScalerConfig = runtimeConfig.verticalScaler
|
|
48
|
-
process._rawDebug('--------VERTICAL SCALER CONFIG----------', verticalScalerConfig)
|
|
49
|
-
}, 1000).unref()
|
|
50
|
-
|
|
51
45
|
const verticalScalerConfig = runtimeConfig.verticalScaler
|
|
52
|
-
process._rawDebug('--------VERTICAL SCALER CONFIG----------', verticalScalerConfig)
|
|
53
46
|
if (verticalScalerConfig?.enabled) {
|
|
54
47
|
for (const applicationId in verticalScalerConfig.applications) {
|
|
55
48
|
const service = services.find((s) => s.id === applicationId)
|
package/test/spawn.test.js
CHANGED
|
@@ -16,7 +16,7 @@ const __dirname = dirname(__filename)
|
|
|
16
16
|
const require = createRequire(import.meta.url)
|
|
17
17
|
const platformaticVersion = require('@platformatic/runtime/package.json').version
|
|
18
18
|
|
|
19
|
-
test
|
|
19
|
+
test('should spawn a service app sending the state', async (t) => {
|
|
20
20
|
const applicationName = 'test-app'
|
|
21
21
|
const applicationId = randomUUID()
|
|
22
22
|
const applicationPath = join(__dirname, 'fixtures', 'service-1')
|