Hello,
our application has been getting stuck loading in the development environment. The deployed version of the app does not seem to have any issues, but locally, on the same version as the deployed app there seems to be a cycle of loading and cancelling when a parametrization call is made.
This is with a fresh clear, install, and start.
2025-01-15 13:52:47.816 INFO : VIKTOR connector : v6.0.2
2025-01-15 13:52:47.817 INFO : VIKTOR CLI : v0.44.0
2025-01-15 13:52:47.817 INFO : VIKTOR SDK : v14.19.0
Hi, could you try to install your app using the previous connector version like this:
viktor-cli install --connector 6.0.1
and see if the issue is still there?
We have recently made a change in the autoreload functionality to fix reloads not being triggered while making quick changes. This however might have cause your side effect, but ONLY if your application is triggering a reload while reloading. Could it be the case that you (or your code) are for example writing or updating local files while the previous reload is happening?
To better answer your question, my colleague and I would appreciate it if you could clarify what are the conditions to ‘trigger a reload’ of the application.
To the best of our knowledge, we are not writing or editing files while the application is running. However, we are calling functions that build parameters or even steps.
For instance, for a step that’s common to several ‘sub-applications’ in a tree-app, we might have something like this:
(sub-application file)
step = get_config_step()
where get_config_step is called from our utilities and is as follows:
def get_config_step(...):
step = parametrization.Step('Configuration',)
# ... create a few parameters in the step
return step