1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Merge pull request #13930 from Budibase/fix/app-migrations-automation-service

Moving app migrations back to automation worker service
This commit is contained in:
Michael Drury 2024-06-12 15:53:20 +01:00 committed by GitHub
commit 5367696abd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -25,8 +25,8 @@ export async function getAppMigrationVersion(appId: string): Promise<string> {
let metadata: AppMigrationDoc | undefined = await cache.get(cacheKey)
// We don't want to cache in dev or QA in order to be able to tweak it
if (metadata && !env.isDev() && !env.isQA()) {
// returned cached version if we found one
if (metadata?.version) {
return metadata.version
}

View file

@ -20,7 +20,7 @@ import * as pro from "@budibase/pro"
import * as api from "../api"
import sdk from "../sdk"
import { initialise as initialiseWebsockets } from "../websockets"
import { apiEnabled, automationsEnabled, printFeatures } from "../features"
import { automationsEnabled, printFeatures } from "../features"
import * as jsRunner from "../jsRunner"
import Koa from "koa"
import { Server } from "http"
@ -121,8 +121,6 @@ export async function startup(
// app migrations and automations on other service
if (automationsEnabled()) {
queuePromises.push(automations.init())
}
if (apiEnabled()) {
queuePromises.push(appMigrations.init())
}
queuePromises.push(initPro())