Skip to content

Commit 202e7bc

Browse files
committed
refactor(admin): hoist scheduled step helper import
1 parent a14dd61 commit 202e7bc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/supervaizer/admin/workbench_routes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from supervaizer.contracts import API_VERSION
3131
from supervaizer.job import Job, JobContext, JobResponse, Jobs
3232
from supervaizer.lifecycle import EntityStatus
33+
from supervaizer.scheduled_steps import _execute_scheduled_method
3334

3435
templates = Jinja2Templates(directory=str(Path(__file__).parent / "templates"))
3536

@@ -531,8 +532,6 @@ async def workbench_execute_step(
531532
request: Request, slug: str, job_id: str, case_id: str, step_index: int
532533
) -> Response:
533534
"""Execute a scheduled step immediately."""
534-
from supervaizer.server import _execute_scheduled_method
535-
536535
agent = get_agent_by_slug(request, slug)
537536

538537
# Verify the job is owned by this agent before using the agent's

0 commit comments

Comments
 (0)