port-ocean 0.24.4__py3-none-any.whl → 0.24.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of port-ocean might be problematic. Click here for more details.

@@ -72,13 +72,21 @@ class BaseIntegration(SyncRawMixin, SyncMixin):
72
72
 
73
73
  self.started = True
74
74
 
75
- async with event_context(
76
- EventType.START,
77
- trigger_type="machine",
78
- ):
79
- await asyncio.gather(
80
- *(listener() for listener in self.event_strategy["start"])
81
- )
75
+ if self.event_strategy["start"]:
76
+ async def run_on_start_tasks() -> None:
77
+ try:
78
+ async with event_context(
79
+ EventType.START,
80
+ trigger_type="machine",
81
+ ):
82
+ await asyncio.gather(
83
+ *(listener() for listener in self.event_strategy["start"])
84
+ )
85
+ except Exception as e:
86
+ logger.exception("Error in start event listeners: %s", str(e))
87
+
88
+ # This task will run the `on_start`s in the background and will not block the server startup
89
+ asyncio.create_task(run_on_start_tasks())
82
90
 
83
91
  logger.info("Initializing event listener")
84
92
  event_listener = await self.event_listener_factory.create_event_listener()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.24.4
3
+ Version: 0.24.5
4
4
  Summary: Port Ocean is a CLI tool for managing your Port projects.
5
5
  Home-page: https://app.getport.io
6
6
  Keywords: ocean,port-ocean,port
@@ -115,7 +115,7 @@ port_ocean/core/handlers/webhook/abstract_webhook_processor.py,sha256=5KwZkdkDd5
115
115
  port_ocean/core/handlers/webhook/processor_manager.py,sha256=ipyAXoFtF84EGczyzRcZCzQG4Ippjo4eMsnVxMVz12A,12072
116
116
  port_ocean/core/handlers/webhook/webhook_event.py,sha256=9wHXLY6IGgjuqrwXXvZm_RbYEd-a9qIFNxWnGbfPv6o,3877
117
117
  port_ocean/core/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
118
- port_ocean/core/integrations/base.py,sha256=eS0WDOfCTim1UOQQrNuP14I6hvT_fr8dof_cr1ls01s,3107
118
+ port_ocean/core/integrations/base.py,sha256=dUhytVM9uUbcDRzG1QWyvBvEJOWZY0dPVV3hXuukOfg,3587
119
119
  port_ocean/core/integrations/mixins/__init__.py,sha256=FA1FEKMM6P-L2_m7Q4L20mFa4_RgZnwSRmTCreKcBVM,220
120
120
  port_ocean/core/integrations/mixins/events.py,sha256=2L7P3Jhp8XBqddh2_o9Cn4N261nN1SySfrEdJoqLrIw,2714
121
121
  port_ocean/core/integrations/mixins/handler.py,sha256=mZ7-0UlG3LcrwJttFbMe-R4xcOU2H_g33tZar7PwTv8,3771
@@ -200,8 +200,8 @@ port_ocean/utils/repeat.py,sha256=U2OeCkHPWXmRTVoPV-VcJRlQhcYqPWI5NfmPlb1JIbc,32
200
200
  port_ocean/utils/signal.py,sha256=mMVq-1Ab5YpNiqN4PkiyTGlV_G0wkUDMMjTZp5z3pb0,1514
201
201
  port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
202
202
  port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
203
- port_ocean-0.24.4.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
204
- port_ocean-0.24.4.dist-info/METADATA,sha256=qlhSoMjy8yHoOBUz5-5MRml0HTjQDh8wKFMyatE3nXs,6764
205
- port_ocean-0.24.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
206
- port_ocean-0.24.4.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
207
- port_ocean-0.24.4.dist-info/RECORD,,
203
+ port_ocean-0.24.5.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
204
+ port_ocean-0.24.5.dist-info/METADATA,sha256=0VdWbC6ZGVFWxt98joS9BoLC3FgafrJFrCrabRRlPiw,6764
205
+ port_ocean-0.24.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
206
+ port_ocean-0.24.5.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
207
+ port_ocean-0.24.5.dist-info/RECORD,,