(input: { directory: string })
| 43 | } |
| 44 | }, |
| 45 | async checkUpgrade(input: { directory: string }) { |
| 46 | await Instance.provide({ |
| 47 | directory: input.directory, |
| 48 | init: InstanceBootstrap, |
| 49 | fn: async () => { |
| 50 | await upgrade().catch(() => {}) |
| 51 | }, |
| 52 | }) |
| 53 | }, |
| 54 | async shutdown() { |
| 55 | Log.Default.info("worker shutting down") |
| 56 | await Instance.disposeAll() |