Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Runner selection: pool size, failure classification and payment_sent on rejections

Aperta
#70 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start with the proposal, then read RunnerSelectionCursor.next in src/livepeer_gateway/selection.py and discover_orchestrator_runners in src/livepeer_gateway/discovery.py. Trace the related reserve_session change from #37 and the still-open #36 before deciding the pool, ordering, failure categories, and payment state. Done means the requested selection and rejection information is defined and implemented consistently.

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

Descrizione

The builder engine (proposal) will build its runner failover on runner_selector / RunnerSelectionCursor. Three things are missing for that.

Today (main at 44df061):

  • RunnerSelectionCursor.next tries candidates in discovery order and moves on after any exception.
  • Its candidates come from discover_orchestrator_runners, which returns the runners of the first batch of five orchestrators that has any.
  • There is no setting for how many candidates to consider, no ordering hook, and no way to tell a capacity refusal from other failures.
  • RunnerRejection records only the URL and a reason string, so a caller cannot tell whether a failed attempt had already paid. With a session prepay, a start refused on capacity has paid.

Request:

  1. A maximum pool size, so selection can consider runners across more than one orchestrator batch.
  2. An ordering hook, or ranking inputs.
  3. A classified failure reason: capacity refusal versus unreachable versus other.
  4. Whether payment was sent, on each rejection.

Related: #37 forwarded orchestrators through reserve_session. That change is on main, but #36 is still open.

Lingua principale
Python
Stelle
1
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 livepeer/livepeer-python-gateway

Tutte le issue di livepeer/livepeer-python-gateway

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.