-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor: startup process refactoring for manager #406
base: master
Are you sure you want to change the base?
Conversation
datawhores
commented
Dec 26, 2024
- create a transitionmanager startup process
- remove async_startup
- add reset function if actions need to be run for each config, since startup only runs once
This could break a lot of things. It may work as long as no unknown exception are raised. There also a lot of functions that, even though they are synchronous, they use It's better to just add more robust handling of exceptions inside the synchronous startup |
We can prevent all of this by deprecating |
Realistically, I don't think we need to keep the transfer function. We're releasing v6 and keeping the v4 code seems unnecessary. If anyone is still using v4, we can have the transfer thing say to downgrade to the last version that supports v4 upgrades, then move to v6. Would simplify the code for us and remove what is in most cases an unnecessary option. Another option could be to have a script that handles the transfers? |
There's a v4 to v5 transfer function I'm not sure why people don't have the hash table, it's been in the code for a bit now. But there's no check for the history table for v4 to v5 function, and the create history table function isn't called until later. That transfer seems to run okay |
The reason they do not have a CyberDropDownloader/cyberdrop_dl/utils/transfer/db_setup.py Lines 22 to 29 in a6e6fd9
The database being a 0B file happens if the user starts CDL with the UI but exits immediately without doing any download, like mentioned #409. That means the normal That's why i think #407 is a more proper fix cause it just stop the transfer if the table does not exists. We don't need to transfer the database to v6 cause it will already have the v6 schema when it gets created later on in the logic. |
I agree but lets wait until the next release. I would like to test v4 import after all the other problems are fixed, to make sure it works and we have a correct reference of the last version that supported v4. After that we can remove it and then move the v5 to v6 import from the normal |