Merge pull request #147 from matt-159/headless-resume-failed-batch-patch

Can now use "Resume failed batch" feature when rendering headlessly
pull/152/head
Torrin Leonard 2022-09-28 14:33:19 -04:00 zatwierdzone przez GitHub
commit d7e15455cd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 20 dodań i 0 usunięć

Wyświetl plik

@ -727,6 +727,12 @@ There are also additional optional arguments that you can use:
Use batch data from a separate folder rather than the folder Blend My NFTs uses by default.
`--batch-data`
- Try to resume a failed batch
Resume a failed batch from where it stopped
`--resume-failed-batch`
You can also view this information from your terminal/command line by running:

Wyświetl plik

@ -352,6 +352,14 @@ def run_as_headless():
if args.batch_data_path:
input.batch_json_save_path = args.batch_data_path
if args.resume_failed_batch:
_fail_state, _failed_batch, _failed_dna, _failed_dna_index = helpers.check_failed_batches(input.batch_json_save_path)
input.fail_state = _fail_state
input.failed_batch = _failed_batch
input.failed_dna= _failed_dna
input.failed_dna_index = _failed_dna_index
if args.operation == 'create-dna':
intermediate.send_to_record(input)

Wyświetl plik

@ -65,4 +65,10 @@ def get_python_args():
help="Overwrite the logic file path in the config file"
)
parser.add_argument("--resume-failed-batch",
dest="resume_failed_batch",
action="store_true",
required=False,
help="Resume failed batch"
)
return parser.parse_args(argv), parser