Commit 4b14734
authored
refactor/query-workers (#528)
* add files that we'll need for this refactor
* add MerlinBaseFactory class
* refactor MerlinBackendFactory to use MerlinBaseFactory
* add tests for MerlinBaseFactory and fix backend tests
* convert monitor factory to use new MerlinBaseFactory
* remove comment and update MonitorFactory docstring
* update MerlinStatusRendererFactory to use MerlinBaseFactory and fix TODOs related to Maestro
* add tests for the status renderer factory
* update CHANGELOG
* run fix-style
* fix issue with typehint that breaks in python 3.8
* mocked more items to try to fix broken tests on github
* create MerlinWorker and CeleryWorker classes to handle the launching of workers
* implement worker-handler related classes
* add worker factory class and small cleanup to the rest of the worker files
* remove functions that are now in the new worker files
* link the new worker classes to the actual launching of workers
* fix regex in test
* remove watchdog files and run fix-style
* fix tests that broke after refactor
* run fix-style
* update CHANGELOG
* refactored how the database command is initially processed
* add filtering logic to the entity managers
* add support for database-level filtering
* move get_plural_of_entity and get_singular_of_entity to utils.py
* fix database command tests
* fix broken tests for entity manager
* run fix-style and update CHANGELOG
* add tests for new backend filtering
* add tests for new cli utils functions
* fix typo in cli/utils.py
* run fix-style
* add filter options to the command line page
* resolve conflicts
* resolve conflicts
* mocked more items to try to fix broken tests on github
* create MerlinWorker and CeleryWorker classes to handle the launching of workers
* implement worker-handler related classes
* add worker factory class and small cleanup to the rest of the worker files
* remove functions that are now in the new worker files
* link the new worker classes to the actual launching of workers
* add files that we'll need for this refactor
* fix regex in test
* remove watchdog files and run fix-style
* fix tests that broke after refactor
* run fix-style
* update CHANGELOG
* run fix-style
* fix worker-related factory classes
* add tests for new workers files
* change imports for Celery worker and handler in tests
* run fix-style
* attempt to fix broken unit tests
* fix style
* add mocked merlin db to broken test
* run fix-style
* fix susbcriptable error in test
* first pass at adding new worker formatter classes
* link new formatters to new query-workers refactor
* remove _discover_builtins method that's not used and annoying
* change database to only store base name of queue
* get filters working for query-workers command
* finalize worker formatters
* add console as class attribute for formmatters and fix pylint issues
* more pylint fixes
* add attributes section to json formatter
* fix broken tests
* update CHANGELOG
* updated the query-workers docs page
* update the query-workers CLI docs
* fix one more merge problem
* add query-workers tests to celery worker handler test file
* add tests for rich formatter
* add tests for all formatter modules
* run fix-style
* fix broken test
* remove query-workers integration tests
* fix issue with tests
* run fix style
* fix issue with pid and use WorkerStatus enum properly
* add functionality to compare db data against live celery data
* run fix style and fix tests
* move function to CeleryWorkerHandler and add/fix tests
* run fix-style
* integrate new queue-info code with latest changes
* add ability to query workers from local db
* update docs to add new local-db option
* remove accidental double reload_data call
* fix bug when loading status of a worker
* fix two unit tests related to latest changes1 parent 51d91f6 commit 4b14734
File tree
56 files changed
+3836
-403
lines changed- docs
- assets/images/monitoring/queues_and_workers
- user_guide
- monitoring
- merlin
- abstracts
- cli/commands
- common
- db_scripts
- entities
- entity_managers
- exceptions
- monitor
- study
- workers
- formatters
- handlers
- tests
- integration
- commands
- unit
- abstracts
- cli/commands
- common
- db_scripts
- entities
- monitor
- workers
- formatters
- handlers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+3836
-403
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments