From 9d6a101162676b7c6c07b9e843125d846650e1eb Mon Sep 17 00:00:00 2001 From: Shalev Avhar Date: Sun, 28 Jul 2024 16:27:03 +0300 Subject: [PATCH] fix: no need for await for a regular function --- port_ocean/ocean.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/port_ocean/ocean.py b/port_ocean/ocean.py index c7603d8320..32d1b89a71 100644 --- a/port_ocean/ocean.py +++ b/port_ocean/ocean.py @@ -77,12 +77,11 @@ async def _setup_scheduled_resync( ) -> None: async def execute_resync_all() -> None: now = datetime.datetime.now() - calculation = asyncio.create_task( - calculate_next_resync(now, self.config.scheduled_resync_interval) + next_resync = calculate_next_resync( + now, self.config.scheduled_resync_interval ) logger.info("Starting a new scheduled resync") await self.integration.sync_raw_all() - next_resync = await calculation if next_resync: await self.port_client.update_resync_state(