Validate bounded concurrent analysis in the local workspace

Abierto
#21 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Start with the local queue and HTTP application paths, then review the host capability and portable metrics work referenced as #13 and #19. Compare opt-in two-job runs against one-at-a-time exhaustive analysis, tracking queue wait, time to first result, process-wide CPU and RSS, cancellation, restart recovery, ordered results, PTS and PNG hashes. Done means evidence and coverage match across mixed workloads and different hardware before choosing a default; testing on another host is still pending.

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

Descripción

Evidence

Draft PR #20 ran two exhaustive Vision jobs in separate processes. One worker per job reduced the median total time from 24.64 to 13.08 s for the 1080p pair while sampled peak RSS rose from 197.0 to 384.3 MiB. The 60-second motion repeat also kept ordered detections, original PTS and PNG hashes under all three configurations.

Acceptance

  • Exercise an opt-in two-job admission limit through the real local queue. Retain one active job as the reference. Track time spent waiting and time to the first result separately.
  • Measure aggregate process memory and CPU with mixed inputs and engines. Use known sample budgets for each tested host. Keep process-wide CPU and RSS labeled as process-wide if multiple scans share an interpreter.
  • Check that cancelling one job preserves the other job and its evidence. Verify completion, queue progression and restart recovery with both pending and active jobs.
  • Compare ordered results, original PTS and PNG hashes against one-at-a-time exhaustive analysis. Reject a configuration if relevant evidence or coverage differs.
  • Evaluate the same policy with different hardware before selecting a default. Use #13 for host capabilities and #19 for portable local-core metrics.

Serial reference

A native M5 browser API test on the local staging branch wave-3/queue-admission (4c80168) verified that a second job waits while an HTTPS download is active. Cancelling the active job cleared its partial files, advanced the queue, and let the waiting job reproduce the serial reference's ordered results, original PTS and PNG hashes. The opt-in concurrent mode and its resource and restart checks are pending.

Native application experiment

Local checkpoint 870e5e5 adds --parallel-jobs 2 for two single-worker Vision jobs and exclusive execution for other configurations. Three pairs per configuration were measured through the actual HTTP application on Apple M5. Median batch wall time was 20.97 s in series and 17.35 s with overlap. Sampled process RSS was 192.4 and 251.3 MiB. All 12 jobs processed 192 frames and preserved the 25 detections, PTS and PNG hashes per job. Tests passed for queue progression, independent cancellation and recovery of persisted states after forced exit. The single-job default remains in place and mixed workloads on other hardware remain pending.

Draft PR #22 isolates the queue and integration tests on #18. The standard workflow on 8839a31 passed Linux and macOS. The macOS run passed all three queue cases, with one optional PaddleOCR skip elsewhere in the suite. Mixed workloads on another host remain pending.

Integrated implementation

PR #22 was merged into main as 0e7221e. The updated candidate dadd93f passed the required Linux check and the standard macOS arm64 workflow. The local policy remains one active job unless --parallel-jobs 2 is selected. Further mixed-workload measurements on different hardware remain open.

Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
20 h
PR fusionados (30 d)
5

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 JusticeGG-dev/CodeHunter

Todos los issues de JusticeGG-dev/CodeHunter

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.