When running the command batch-shipyard-3.9.1-cli-win-amd64.exe jobs add --configdir "myDir" --recreate, the process fails with error "The specified job schedule is already in completed state." I would expect the --recreate parameter to allow the same job name to be redeployed as per the description:
--recreate will recreate any completed jobs with the same id
Batch Shipyard Version
batch-shipyard 3.9.1
Steps to Reproduce
Run the jobs add command with an id matching that of one already deployed.
Expected Results
2020-03-16 18:16:20.565 INFO - Adding jobschedule oip-prp20-q to pool prp20-q-pool
Actual Results
File "site-packages\azure\batch\operations_job_schedule_operations.py", line 974, in add
azure.batch.models._models_py3.BatchErrorException: Request encountered an exception.
Code: JobScheduleCompleted
Message: {'additional_properties': {}, 'lang': 'en-US', 'value': 'The specified job schedule is already in completed state.\nRequestId:739261b3-2bdd-4129-8522-015a5aa8ceae\nTime:2020-03-16T22:31:33.5166779Z'}
Problem Description
When running the command batch-shipyard-3.9.1-cli-win-amd64.exe jobs add --configdir "myDir" --recreate, the process fails with error "The specified job schedule is already in completed state." I would expect the --recreate parameter to allow the same job name to be redeployed as per the description:
--recreate will recreate any completed jobs with the same id
Batch Shipyard Version
batch-shipyard 3.9.1
Steps to Reproduce
Run the jobs add command with an id matching that of one already deployed.
Expected Results
2020-03-16 18:16:20.565 INFO - Adding jobschedule oip-prp20-q to pool prp20-q-pool
Actual Results
File "site-packages\azure\batch\operations_job_schedule_operations.py", line 974, in add azure.batch.models._models_py3.BatchErrorException: Request encountered an exception. Code: JobScheduleCompleted Message: {'additional_properties': {}, 'lang': 'en-US', 'value': 'The specified job schedule is already in completed state.\nRequestId:739261b3-2bdd-4129-8522-015a5aa8ceae\nTime:2020-03-16T22:31:33.5166779Z'}