-
Notifications
You must be signed in to change notification settings - Fork 5
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
Delay associated with running Pepys across network #1035
Comments
Are we expected to write these scripts? If so, will we be hard-coding the path to the network version of Pepys - or will that be provided in some other way (partly in case the network location changes, partly in case the network location is sensitive). If we need to write new Powershell scripts to do this, then I am happy to do this before I leave - but will need to start work on it soon. |
Pulling this item back into the backlog. I'd like us to consider a strategy for local deployments of Pepys - to overcome the delay in the |
A few short notes on this (we can discuss more in our call tomorrow if you want): We can't just use the database version for comparison, as the database version only changes if we have a database migration, whereas we want to know whether there has been a change in the version of Pepys itself, which can happen without migrations being needed I think the best way of doing this would be:
How does this sound @IanMayo? |
That's all good, thanks @robintw . Potential alternate solutions for the "process wanting to update itself" could be:
I agree about the database version. |
I've just tested this @robintw - and it worked fine. The Hmm, also - one thought. I think we should try to ensure that we update the version file right at the end. In that way, if an update fails, it can be restarted. Currently, if an update fails once the version file has been updated, then Pepys will think it's on the new version. Aah, hold on. I've just run upgrade again - and it has repeated the upgrade. I wonder why we're not checking the version. Aaah, I know. We currently check the version in pepys-admin and pepys-import. Once they have warned the user to upgrade, then we're ok with the update just happening. Does that sound right? |
Unfortunately I've tried all sorts of ways of getting a sensible progress indicator (including most of the ones here) but none of them give us what we want. Most of them either fail entirely, or give us a progress bar per-file, whereas we want one overall progress bar. I think we're probably stuck with either using the verbose mode, or having no output at all while the copy takes place.
That's a good idea - I'll switch to two copies, one for everything except the version file, and one for the version file.
Yes I think so - and it simplifies the logic of the upgrade script a lot. |
That's all great, thanks @robintw . Let's keep the verbose setting - to avoid a delay that could look like things have frozen. |
When
pepys-import
orpepys-admin
are run on the client network there is a 20 second delay before the python code starts.I copied Pepys to the
C:
drive, and the apps opened with a delay of only around a second.So, we should work with onsite technical support to provide local installs of Pepys.
In discussion today, we came up with this strategy:
C:\Site Programs\Pepys
folder with one fromM"\tools\Pepys\current", then runs
bin\install.bat"install updater
from network location, thenUpdate Pepys
from their start menuThen, on new updates, Pepys users will be invited to run
Update Pepys
from their Start menuThe text was updated successfully, but these errors were encountered: