kojismokydingo.hosts

Koji Smoky Dingo - Host Utilities

Functions for working with Koji hosts

author:

Christopher O'Brien <obriencj@gmail.com>

license:

GPL v3

gather_hosts_checkins(session, arches=None, channel=None, skiplist=None)[source]

Similar to session.listHosts, but results are decorated with a new "last_update" entry, which is the timestamp for the host's most recent check-in with the hub. This can be used to identify builders which are enabled, but no longer responding.

Parameters:
  • session (ClientSession) -- an active koji client session

  • arches (List[str] | None) -- List of architecture names to filter builders by. Default, all arches

  • channel (str | None) -- Channel name to filter builders by. Default, builders in any channel.

  • skiplist (List[str] | None) -- List of glob-style patterns of builders to omit. Default, all builders included

Since:

1.0

Return type:

List[DecoratedHostInfo]