Skip to content

Commit

Permalink
chore(p-s): add logs around setupPlugins (#18099)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello authored Oct 19, 2023
1 parent 8577e13 commit a02e816
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin-server/src/worker/plugins/setup.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Hub, StatelessVmMap } from '../../types'
import { status } from '../../utils/status'
import { LazyPluginVM } from '../vm/lazy'
import { loadPlugin } from './loadPlugin'
import { loadPluginsFromDB } from './loadPluginsFromDB'
import { loadSchedule } from './loadSchedule'
import { teardownPlugins } from './teardown'

export async function setupPlugins(hub: Hub): Promise<void> {
status.info('🔁', `Loading plugin configs...`)
const { plugins, pluginConfigs, pluginConfigsPerTeam } = await loadPluginsFromDB(hub)
const pluginVMLoadPromises: Array<Promise<any>> = []
const statelessVms = {} as StatelessVmMap
Expand Down Expand Up @@ -56,4 +58,6 @@ export async function setupPlugins(hub: Hub): Promise<void> {
if (hub.capabilities.pluginScheduledTasks) {
await loadSchedule(hub)
}

status.info('✅', `Loaded ${pluginConfigs.size} configs for ${plugins.size} plugins`)
}

0 comments on commit a02e816

Please sign in to comment.