new changes
This commit is contained in:
@@ -13,7 +13,6 @@ from collections import defaultdict
|
||||
from typing import Annotated, Any, Literal, Optional, Union
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import asyncssh
|
||||
from fastapi import APIRouter, HTTPException, Request, WebSocket
|
||||
from pydantic import BaseModel, Field, field_validator
|
||||
|
||||
@@ -198,6 +197,8 @@ async def create_job(body: CreateJobRequest, request: Request):
|
||||
auth_payload = body.auth
|
||||
|
||||
async def runner() -> None:
|
||||
import asyncssh
|
||||
|
||||
async with _jobs_lock:
|
||||
job = _jobs.get(job_id)
|
||||
if not job:
|
||||
|
||||
Reference in New Issue
Block a user