added argument to allow for resuming failed batch headlessly

pull/147/head
Matt 2022-09-21 13:25:29 -07:00
rodzic df9e75a432
commit bc6a46a40a
2 zmienionych plików z 14 dodań i 0 usunięć

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(_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",
type=bool,
required=False,
help="Resume failed batch"
)
return parser.parse_args(argv), parser