Skip to content

Commit

Permalink
Port 7627 ocean retry integration entities search (#499)
Browse files Browse the repository at this point in the history
# Description

What - Search request sometime reach timeout
Why - latency in port
How - Higher timeout

## Type of change

- [X] Non-breaking change (fix of existing functionality that will not
change current behavior)
  • Loading branch information
yairsimantov20 committed Apr 11, 2024
1 parent 26e1439 commit d4d2770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Improvements

- Improved the handling of integration entities by adding retries and running it after the upsert to prevent blocking the resync
- Changed entities search timeout to 30 seconds to prevent blocking the resync

### Features

Expand Down
1 change: 1 addition & 0 deletions port_ocean/clients/port/mixins/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async def search_entities(self, user_agent_type: UserAgentType) -> list[Entity]:
"include": ["blueprint", "identifier"],
},
extensions={"retryable": True},
timeout=30,
)
handle_status_code(response)
return [Entity.parse_obj(result) for result in response.json()["entities"]]

0 comments on commit d4d2770

Please sign in to comment.