1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Moving app migrations back to the automation service now that its getting updated in QA - also making sure that the app migration is always cached, disabling it in dev/QA may hide issues with caching, making sure it always runs the same as it does in prod is safest.

This commit is contained in:
mike12345567 2024-06-12 15:04:18 +01:00
parent f8765fb254
commit 585bbefb90
2 changed files with 2 additions and 4 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

@ -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())