Skip to content

Commit

Permalink
[SQUASH] Fix flow
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzaadi committed Jan 12, 2025
1 parent bf41328 commit 9a065ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions port_ocean/clients/port/mixins/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ async def _poll_integration_until_default_provisioning_is_complete(
)
await asyncio.sleep(current_interval_seconds)

current_interval_seconds = (
attempts += 1
current_interval_seconds = int(
current_interval_seconds * INTEGRATION_POLLING_INTERVAL_BACKOFF_FACTOR
)

Expand All @@ -89,7 +90,7 @@ async def create_integration(
changelog_destination: dict[str, Any],
port_app_config: Optional["PortAppConfig"] = None,
use_provisioned_defaults: Optional[bool] = False,
) -> dict:
) -> Dict[str, Any]:
logger.info(f"Creating integration with id: {self.integration_identifier}")
headers = await self.auth.headers()
json = {
Expand All @@ -111,7 +112,7 @@ async def create_integration(
f"{self.auth.api_url}/integration",
headers=headers,
json=json,
query_params=query_params,
params=query_params,
)
handle_status_code(response)
if use_provisioned_defaults:
Expand Down

0 comments on commit 9a065ef

Please sign in to comment.