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:
parent
f8765fb254
commit
585bbefb90
|
@ -25,8 +25,8 @@ export async function getAppMigrationVersion(appId: string): Promise<string> {
|
||||||
|
|
||||||
let metadata: AppMigrationDoc | undefined = await cache.get(cacheKey)
|
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
|
// returned cached version if we found one
|
||||||
if (metadata && !env.isDev() && !env.isQA()) {
|
if (metadata?.version) {
|
||||||
return metadata.version
|
return metadata.version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,8 +121,6 @@ export async function startup(
|
||||||
// app migrations and automations on other service
|
// app migrations and automations on other service
|
||||||
if (automationsEnabled()) {
|
if (automationsEnabled()) {
|
||||||
queuePromises.push(automations.init())
|
queuePromises.push(automations.init())
|
||||||
}
|
|
||||||
if (apiEnabled()) {
|
|
||||||
queuePromises.push(appMigrations.init())
|
queuePromises.push(appMigrations.init())
|
||||||
}
|
}
|
||||||
queuePromises.push(initPro())
|
queuePromises.push(initPro())
|
||||||
|
|
Loading…
Reference in New Issue