[api] Report the current tick in task status

Abierto
#232 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
47/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api, backend

Línea de trabajo

Start by reading the implementation of GET /v1/tasks/{task_id} from dependent issue #209 and identify how task state is stored and returned. Then trace how OpenCDA runs the simulation and where task-directory files are managed; issue #230 defines the max_ticks limit. Done means the response includes the current tick and max_ticks (or null when unset), with OpenCDA publishing progress for the runner.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem or motivation

GET /v1/tasks/{task_id} from #209 returns only id and state. While a task is RUNNING, a client cannot tell how far the simulation has progressed. Scenario Manager shows a progress bar for each run.

Proposed solution
  • Add tick and max_ticks to the task returned by GET /v1/tasks/{task_id}. max_ticks is the limit from #230, or null if none is set.
  • Have OpenCDA publish the current tick for the runner, for example by writing it to a file in the task directory every few ticks.
Area

Scenario management

Additional context

Depends on #209.

Lenguaje dominante
Python
Estrellas
11
Forks
11
Merge medio
1 d 16 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CAVISE/OpenCDA

Todos los issues de CAVISE/OpenCDA

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.