mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fece935438
Replace `delete_on_startup: bool` & associated logic with `ephemeral: bool` and `TemporaryDirectory`. The temp dir is created inside of `output_dir`. For example, if `output_dir` is `invokeai/outputs/tensors/`, then the temp dir might be `invokeai/outputs/tensors/tmpvj35ht7b/`. The temp dir is cleaned up when the service is stopped, or when it is GC'd if not properly stopped. In the event of a catastrophic crash where the temp files are not cleaned up, the user can delete the tempdir themselves. This situation may not occur in normal use, but if you kill the process, python cannot clean up the temp dir itself. This includes running the app in a debugger and killing the debugger process - something I do relatively often. Tests updated. |
||
---|---|---|
.. | ||
aa_nodes | ||
app | ||
backend | ||
fixtures | ||
inpainting | ||
test_model_manager | ||
test_model_probe/vae | ||
__init__.py | ||
conftest.py | ||
dev_prompts.txt | ||
legacy_tests.sh | ||
test_config.py | ||
test_item_storage_memory.py | ||
test_model_manager.py | ||
test_model_probe.py | ||
test_object_serializer_disk.py | ||
test_path.py | ||
test_profiler.py | ||
test_sqlite_migrator.py | ||
validate_pr_prompt.txt |