port-ocean 0.13.0__py3-none-any.whl → 0.13.1.dev1__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.

port_ocean/ocean.py CHANGED
@@ -70,6 +70,8 @@ class Ocean:
70
70
  self.port_client, self.config.scheduled_resync_interval
71
71
  )
72
72
 
73
+ self.app_initialized = False
74
+
73
75
  def is_saas(self) -> bool:
74
76
  return self.config.runtime == Runtime.Saas
75
77
 
@@ -112,7 +114,7 @@ class Ocean:
112
114
  )
113
115
  await repeated_function()
114
116
 
115
- async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
117
+ def initialize_app(self):
116
118
  self.fast_api_app.include_router(self.integration_router, prefix="/integration")
117
119
 
118
120
  @asynccontextmanager
@@ -129,4 +131,10 @@ class Ocean:
129
131
  signal_handler.exit()
130
132
 
131
133
  self.fast_api_app.router.lifespan_context = lifecycle
134
+ self.app_initialized = True
135
+
136
+ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
137
+ if not self.app_initialized:
138
+ self.initialize_app()
139
+
132
140
  await self.fast_api_app(scope, receive, send)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.13.0
3
+ Version: 0.13.1.dev1
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/log/handlers.py,sha256=ncVjgqrZRh6BhyRrA6DQG86Wsbxph1yWYuEC0cWfe-Q,36
115
115
  port_ocean/log/logger_setup.py,sha256=CoEDowe5OwNOL_5clU6Z4faktfh0VWaOTS0VLmyhHjw,2404
116
116
  port_ocean/log/sensetive.py,sha256=lVKiZH6b7TkrZAMmhEJRhcl67HNM94e56x12DwFgCQk,2920
117
117
  port_ocean/middlewares.py,sha256=9wYCdyzRZGK1vjEJ28FY_DkfwDNENmXp504UKPf5NaQ,2727
118
- port_ocean/ocean.py,sha256=jwws4U21EwFDXzM517dOlGIuvmLMVdAeIrgCRR6se-8,5105
118
+ port_ocean/ocean.py,sha256=oUNY9XT30oZ6e6asD6yM2dbd01-uD6RvtJXkmobUn7U,5282
119
119
  port_ocean/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
120
120
  port_ocean/run.py,sha256=rTxBlrQd4yyrtgErCFJCHCEHs7d1OXrRiJehUYmIbN0,2212
121
121
  port_ocean/sonar-project.properties,sha256=X_wLzDOkEVmpGLRMb2fg9Rb0DxWwUFSvESId8qpvrPI,73
@@ -142,8 +142,8 @@ port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,32
142
142
  port_ocean/utils/signal.py,sha256=K-6kKFQTltcmKDhtyZAcn0IMa3sUpOHGOAUdWKgx0_E,1369
143
143
  port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
144
144
  port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
145
- port_ocean-0.13.0.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
146
- port_ocean-0.13.0.dist-info/METADATA,sha256=ajsTJbQRHuhu8GKNa1CZ8ZFGu23_dyP2umXKTx-ao1g,6673
147
- port_ocean-0.13.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
148
- port_ocean-0.13.0.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
149
- port_ocean-0.13.0.dist-info/RECORD,,
145
+ port_ocean-0.13.1.dev1.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
146
+ port_ocean-0.13.1.dev1.dist-info/METADATA,sha256=y1F3De2qTYoHTZufqBoGQA2n-Y-dtmk8dJj4SMNtS0g,6678
147
+ port_ocean-0.13.1.dev1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
148
+ port_ocean-0.13.1.dev1.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
149
+ port_ocean-0.13.1.dev1.dist-info/RECORD,,