Interactive Code Note project backend

less than 1 minute read

Published:



graph TD
    A[接收代码] --> B{分配给小容器}
    B --> |成功| C[在小容器中执行]
    C --> |完成| D[返回结果]
    C --> |阻塞或超时| E{转移到大容器}
    B --> |所有小容器忙| E
    E --> |大容器可用| F[在大容器中执行]
    E --> |大容器忙| G[加入等待队列]
    G --> |大容器空闲| F
    F --> |完成| D
    F --> |超时| H[丢弃任务]
    G --> |等待超时| H