diff --git a/hypha/VERSION b/hypha/VERSION index 2bdd15a3..c60204a1 100644 --- a/hypha/VERSION +++ b/hypha/VERSION @@ -1,3 +1,3 @@ { - "version": "0.20.44.post2" + "version": "0.20.44.post3" } diff --git a/hypha/core/store.py b/hypha/core/store.py index 4ffb96f8..124e5478 100644 --- a/hypha/core/store.py +++ b/hypha/core/store.py @@ -195,6 +195,7 @@ def __init__( sources=[self._source], ) self._house_keeping_schedule = None + self._first_run = True self._redis_cache = RedisCache(serializer=PickleSerializer()) self._redis_cache.client = self._redis @@ -303,6 +304,10 @@ async def _run_startup_functions(self, startup_functions): async def housekeeping(self): """Perform housekeeping tasks.""" + if self._first_run: + logger.info("Skipping housekeeping on first run") + self._first_run = False + return try: logger.info(f"Running housekeeping task at {datetime.datetime.now()}") async with self.get_workspace_interface( @@ -532,6 +537,7 @@ async def init(self, reset_redis, startup_functions=None): self._house_keeping_schedule = await self.schedule_task( self.housekeeping, task_name="housekeeping", corn="*/1 * * * *" ) + self._first_run = True async def schedule_task( self,