diff --git a/workshop-manager/operator/workshopprovision.py b/workshop-manager/operator/workshopprovision.py index 0a2f294e..fbdae799 100644 --- a/workshop-manager/operator/workshopprovision.py +++ b/workshop-manager/operator/workshopprovision.py @@ -246,6 +246,10 @@ async def manage(self, logger): raise kopf.TemporaryError("Workshop {self.workshop_name} was not found.", delay=60) raise + if not workshop.workshop_id: + logger.info(f"Waiting for workshop id assignment for {workshop}") + return + async with self.lock: await self.manage_action_schedule_and_lifespan(logger=logger, workshop=workshop) await self.manage_resource_claims(logger=logger, workshop=workshop)