steps_on_startup_step merge leftover

This commit is contained in:
Nate Sesti 2023-07-24 01:32:09 -07:00
parent 96b3f2c15d
commit 01df268fbc

View file

@ -1,6 +1,5 @@
from ...core.main import Step
from ...core.sdk import Models, ContinueSDK
from ...libs.util.step_name_to_steps import get_step_from_name
class StepsOnStartupStep(Step):
@ -12,6 +11,6 @@ class StepsOnStartupStep(Step):
async def run(self, sdk: ContinueSDK):
steps_on_startup = sdk.config.steps_on_startup
for step_name, step_params in steps_on_startup.items():
step = get_step_from_name(step_name, step_params)
for step_type in steps_on_startup:
step = step_type()
await sdk.run_step(step)