pyinfra-dev / pyinfra-dev/pyinfra

List failed hosts on run

Open
#647 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CLI spec
Dominant language
Python
Stars
6k
Forks
548
Avg merge
7d 17h
Merged PRs (30d)
13

Description

Is your feature request related to a problem? Please describe

When I have an operation fail on x amount of hosts, it doesn't allow me to run that same operation on only those failed hosts plus the ones it did not get to if it hit the failure limit easily.

Describe the solution you'd like

If I have 10 hosts, and my operations succeed on the first 3 and fail on the next 3, and my failure limit is 30%, I would like to have an option or some way to get a new inventory file to run those operations again on those failed hosts plus the inventory it did not have a chance to reach. Currently I believe the only way to do this is rerun the operations on all hosts again redundantly.

Contributor guide

Open the contributing guide

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.

Research direction

The issue names no files, tests, or entry points. Begin by locating how failure limits stop host execution and how inventories and per-host results are represented after a run. Done means providing a way to create a rerun inventory containing failed and unattempted hosts without rerunning successful hosts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.