InvenTree/InvenTree/common
Lukas 073a275d89
Skip ready functions if not in main thread or plugins are not loaded yet (#5005)
* Skip ready functions if not in main thread or plugins are not loaded yet

* Debug integration tests

* Update ready.py

* Update ready.py

* Fix isInMainThread and isPluginRegistryLoaded ready functions

* Preload gunicorn app to only invoke the appconfig ready functions once

* debug: test prints for statistics

* Remove debug print

* Test without

* Revert "Test without"

This reverts commit 1bc1872893.

* Second test

* Add checks back to part, label, user model

* Add checks back to inventree, plugin apps

* log server output for debugging

* hopefully I can get the log this time+

* Next test

* Test with --noreload

* Next test

* trigger: ci, because session expired

* block the second ready execution instead of the first

* fix: load order

* Fix test and revert gh actions workflow change

* Added all_apps method to reload machanism

* Changed detect reload mechanism

* Also trigger ready on reload

* Add skipping second reload back for testing mode

* Added doc string back

* Update InvenTree/plugin/base/integration/AppMixin.py
2023-07-26 08:33:13 +10:00
..
fixtures fix endline 2022-05-20 13:35:07 +02:00
migrations Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
__init__.py startapp common 2019-09-03 08:30:14 +10:00
admin.py Add news reader (#3445) 2022-11-10 12:20:06 +11:00
api.py Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
apps.py Prevent write of SERVER_RESTART_REQUIRED setting when importing dataset (#3249) 2022-06-24 20:42:55 +10:00
files.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
forms.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
models.py Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
notifications.py Add Notifications shortcut (#5104) 2023-06-26 09:43:07 +10:00
serializers.py Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
settings.py Build Order Updates (#4855) 2023-06-13 20:18:32 +10:00
tasks.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
test_notifications.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
test_tasks.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_views.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
tests.py Skip ready functions if not in main thread or plugins are not loaded yet (#5005) 2023-07-26 08:33:13 +10:00
urls.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
views.py Switch to pathlib (#3392) 2022-07-27 10:42:34 +10:00