InvenTree/InvenTree/label
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
..
migrations Label plugin refactor (#5251) 2023-07-17 21:39:53 +10:00
templates/label Synergise label filter help texts (#5100) 2023-06-24 08:40:36 +10:00
__init__.py Add "label" app 2020-08-16 09:28:12 +10:00
admin.py Build line labels (#5034) 2023-06-14 13:07:18 +10:00
api.py Allow label printing when custom plugins not enabled (#5266) 2023-07-18 10:34:50 +10:00
apps.py Skip ready functions if not in main thread or plugins are not loaded yet (#5005) 2023-07-26 08:33:13 +10:00
models.py Label plugin refactor (#5251) 2023-07-17 21:39:53 +10:00
serializers.py Build line labels (#5034) 2023-06-14 13:07:18 +10:00
tasks.py Label plugin refactor (#5251) 2023-07-17 21:39:53 +10:00
test_api.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00
tests.py Label plugin refactor (#5251) 2023-07-17 21:39:53 +10:00