From f8b2de97b6e1e6f7753e672b3ee9e056fed1fa70 Mon Sep 17 00:00:00 2001 From: Tester Date: Jun 22 2022 11:15:27 +0000 Subject: doc: mention CGRefundBuild in CG docs Related: https://pagure.io/koji/issue/3410 --- diff --git a/docs/source/content_generators.rst b/docs/source/content_generators.rst index 93aa50a..572986f 100644 --- a/docs/source/content_generators.rst +++ b/docs/source/content_generators.rst @@ -144,6 +144,10 @@ Relevant API calls for Content Generator are: call of ``CGImport`` while ``build_id`` needs to be part of metadata (as item in ``build`` key). +- ``CGRefundBuild(cg, build_id, token, state=koji.BUILD_STATES['FAILED'])`` - + content generator can drop the reservation created by ``CGInitBuild`` in case + that build failed or was cancelled. Caller must know ``build_id`` and ``token``. + Current Public Implementations ==============================