InvokeAI/tests
Lincoln Stein fbede84405
[feature] Download Queue (#5225)
* add base definition of download manager

* basic functionality working

* add unit tests for download queue

* add documentation and FastAPI route

* fix docs

* add missing test dependency; fix import ordering

* fix file path length checking on windows

* fix ruff check error

* move release() into the __del__ method

* disable testing of stderr messages due to issues with pytest capsys fixture

* fix unsorted imports

* harmonized implementation of start() and stop() calls in download and & install modules

* Update invokeai/app/services/download/download_base.py

Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>

* replace test datadir fixture with tmp_path

* replace DownloadJobBase->DownloadJob in download manager documentation

* make source and dest arguments to download_queue.download() an AnyHttpURL and Path respectively

* fix pydantic typecheck errors in the download unit test

* ruff formatting

* add "job cancelled" as an event rather than an exception

* fix ruff errors

* Update invokeai/app/services/download/download_default.py

Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>

* use threading.Event to stop service worker threads; handle unfinished job edge cases

* remove dangling STOP job definition

* fix ruff complaint

* fix ruff check again

* avoid race condition when start() and stop() are called simultaneously from different threads

* avoid race condition in stop() when a job becomes active while shutting down

---------

Co-authored-by: Lincoln Stein <lstein@gmail.com>
Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
Co-authored-by: Kent Keirsey <31807370+hipsterusername@users.noreply.github.com>
2023-12-22 12:35:57 -05:00
..
aa_nodes [feature] Download Queue (#5225) 2023-12-22 12:35:57 -05:00
app [feature] Download Queue (#5225) 2023-12-22 12:35:57 -05:00
backend In CalculateImageTilesEvenSplitInvocation to have overlap_fraction becomes just overlap. This is now in pixels rather than as a fraction of the tile size. 2023-12-17 15:10:50 +00:00
fixtures fix(db): formatting 2023-12-13 11:25:57 +11:00
inpainting Rename default schedulers across the app 2023-05-12 03:44:20 +12:00
test_model_manager prevent vae: '' from crashing model 2023-08-10 17:33:04 -04:00
test_model_probe/vae test(model management): test VaeFolderProbe 2023-09-20 12:48:59 -07:00
__init__.py parent 9eed1919c2 2023-02-24 18:57:02 -08:00
conftest.py feat(db): remove unnecessary fixture declaration 2023-12-13 10:13:03 +11:00
dev_prompts.txt Added linux to the workflows (#463) 2022-09-16 17:46:57 -04:00
legacy_tests.sh Add back old dream.py as legacy_api.py 2022-10-12 20:35:56 -04:00
test_config.py feat: workflow library (#5148) 2023-12-09 09:48:38 +11:00
test_model_manager.py feat: refactor services folder/module structure 2023-10-12 12:15:06 -04:00
test_model_probe.py lint 2023-09-20 12:53:25 -07:00
test_path.py fix(tests): remove test for frontend build 2023-12-11 12:30:13 +11:00
test_sqlite_migrator.py fix(db): rename "SQLiteMigrator" -> "SqliteMigrator" 2023-12-13 11:31:15 +11:00
validate_pr_prompt.txt fixes to env parsing, textual inversion & help text 2023-05-18 10:48:23 -04:00