kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
added argument to allow for resuming failed batch headlessly
rodzic
df9e75a432
commit
bc6a46a40a
|
@ -352,6 +352,14 @@ def run_as_headless():
|
||||||
if args.batch_data_path:
|
if args.batch_data_path:
|
||||||
input.batch_json_save_path = 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(_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':
|
if args.operation == 'create-dna':
|
||||||
intermediate.send_to_record(input)
|
intermediate.send_to_record(input)
|
||||||
|
|
||||||
|
|
|
@ -65,4 +65,10 @@ def get_python_args():
|
||||||
help="Overwrite the logic file path in the config file"
|
help="Overwrite the logic file path in the config file"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parser.add_argument("--resume-failed-batch",
|
||||||
|
dest="resume_failed_batch",
|
||||||
|
type=bool,
|
||||||
|
required=False,
|
||||||
|
help="Resume failed batch"
|
||||||
|
)
|
||||||
return parser.parse_args(argv), parser
|
return parser.parse_args(argv), parser
|
||||||
|
|
Ładowanie…
Reference in New Issue