Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
gen-payload: Add sleep between image sync and tagging (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
joepvd committed Feb 15, 2023
1 parent 6047bea commit 461e15a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doozerlib/cli/release_gen_payload.py
Expand Up @@ -683,6 +683,8 @@ async def sync_payloads(self):
tasks.append(self.mirror_payload_content(arch, payload_entries))
await asyncio.gather(*tasks)

await asyncio.sleep(60)

# Update the imagestreams being monitored by the release controller.
tasks = []
for arch, payload_entries in self.payload_entries_for_arch.items():
Expand Down
6 changes: 6 additions & 0 deletions tests/cli/test_gen_payload.py
Expand Up @@ -19,6 +19,12 @@
from doozerlib import rhcos


async def no_sleep(arg):
pass

rgp_cli.asyncio.sleep = no_sleep


class TestGenPayloadCli(IsolatedAsyncioTestCase):

def test_find_rhcos_payload_entries(self):
Expand Down

0 comments on commit 461e15a

Please sign in to comment.