Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PORT-4290 fixed issue in the sync #15

Merged
merged 3 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions port_ocean/core/integrations/mixins/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,20 @@ async def _get_resource_raw_results(
logger.info(f"Found {len(tasks)} resync tasks for {resource_config.kind}")

results_with_error: list[
tuple[list[dict[Any, Any]], Exception]
list[dict[Any, Any]] | Exception
] = await asyncio.gather(*tasks, return_exceptions=True)
results: list[dict[Any, Any]] = list(
chain.from_iterable(
[
result
for result, _ in results_with_error
for result in results_with_error
if not isinstance(result, Exception)
]
)
)

errors = [
error for _, error in results_with_error if isinstance(error, Exception)
result for result in results_with_error if isinstance(result, Exception)
]

logger.info(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "port-ocean"
version = "0.1.0.rc2"
version = "0.1.0.rc3"
description = "Port Ocean is a CLI tool for managing your Port projects."
readme = "README.md"
homepage = "https://app.getport.io"
Expand Down