Validate bounded concurrent analysis in the local workspace

Aberta
#21 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
25/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
0
Forks
0
Merge médio
20h
PRs com merge (30d)
5

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de JusticeGG-dev/CodeHunter

Todas as issues de JusticeGG-dev/CodeHunter

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.