Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#70 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
1
Forks
7
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from livepeer/livepeer-python-gateway

All issues in livepeer/livepeer-python-gateway

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.