Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use defaults for db_dir and outdir since config no longer writes defa… #6079

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

brandonrising
Copy link
Collaborator

@brandonrising brandonrising commented Mar 28, 2024

…ults to invokeai.yaml

Summary

Our config service no longer writes default values to the invokeai.yaml file. This PR simply assumes those default values in the event it discovers an invokeai.yaml file in the directory it's run.

QA Instructions

Delete images from your output dir, run this maintenance script and ensure DB is cleaned appropriately.

Run from a directory not containing invokeai.yaml to ensure it fails quickly with logging.

Merge Plan

Can be merged when approved

@github-actions github-actions bot added python PRs that change python files backend PRs that change backend files labels Mar 28, 2024
@psychedelicious psychedelicious linked an issue Mar 28, 2024 that may be closed by this pull request
1 task
@hipsterusername hipsterusername merged commit 3681e34 into main Mar 29, 2024
14 checks passed
@hipsterusername hipsterusername deleted the fix-db-maintenance-script branch March 29, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Image database maintenance script fails
3 participants