[api] Report the current tick in task status

Aperta
#232 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
47/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
11
Fork
11
Merge medio
1g 16h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CAVISE/OpenCDA

Tutte le issue di CAVISE/OpenCDA

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.