Making sure the app migration queue is created correctly consistently.
This commit is contained in:
parent
2e95bd74c9
commit
39392a793d
|
@ -11,10 +11,9 @@ export type AppMigrationJob = {
|
||||||
appId: string
|
appId: string
|
||||||
}
|
}
|
||||||
|
|
||||||
let appMigrationQueue: queue.Queue<AppMigrationJob> | undefined
|
// always create app migration queue - so that events can be pushed and read from it
|
||||||
|
// across the different api and automation services
|
||||||
export function init() {
|
let appMigrationQueue = queue.createQueue<AppMigrationJob>(
|
||||||
appMigrationQueue = queue.createQueue<AppMigrationJob>(
|
|
||||||
queue.JobQueue.APP_MIGRATION,
|
queue.JobQueue.APP_MIGRATION,
|
||||||
{
|
{
|
||||||
jobOptions: {
|
jobOptions: {
|
||||||
|
@ -29,8 +28,9 @@ export function init() {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
export function init() {
|
||||||
return appMigrationQueue.process(MIGRATION_CONCURRENCY, processMessage)
|
return appMigrationQueue.process(MIGRATION_CONCURRENCY, processMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue