We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b55ab9f commit e99c312Copy full SHA for e99c312
packages/instance-controller/src/scheduler.ts
@@ -1,5 +1,6 @@
1
import Config from "./config"
2
import { getApplicationsInStatus, InstanceStatus, updateApplicationStatus } from "./support/application"
3
+import { DatabaseAgent } from "./support/db"
4
import { InstanceOperator } from "./support/instance-operator"
5
import { logger } from "./support/logger"
6
@@ -10,6 +11,9 @@ export function start_schedular() {
10
11
}
12
13
function loop() {
14
+ if (!DatabaseAgent.db) {
15
+ return logger.info('waiting for db connected...')
16
+ }
17
const tick = new Date()
18
handle_prepared_start(tick)
19
handle_starting(tick)
0 commit comments