Skip to content

Commit 2072a72

Browse files
florianlegajosselinbuils
authored andcommitted
feat(lab-3589): make timeout longer for heavy plugins
1 parent d749374 commit 2072a72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/kili/services/plugins/upload.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def _check_plugin_runner_status(self, update: bool = False) -> LiteralString:
318318

319319
action = "updated" if update else "created"
320320

321-
logger.info(f"Plugin is being {action}... This should take approximately 3 minutes.")
321+
logger.info(f"Plugin is being {action}... This should take few minutes.")
322322

323323
n_tries = 0
324324
status = None
@@ -335,7 +335,9 @@ def _check_plugin_runner_status(self, update: bool = False) -> LiteralString:
335335

336336
n_tries += 1
337337

338-
if status == "DEPLOYING" and n_tries == 20:
338+
# this represents the case where the plugin is still deploying
339+
# after 150 tries (37.5 minutes)
340+
if status == "DEPLOYING" and n_tries == 150:
339341
raise RuntimeError(
340342
"We could not check your plugin was deployed in time. Please check again the"
341343
" status of the plugin after some minutes with the command:"

0 commit comments

Comments
 (0)