Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Running job add with --recreate option fails to replace job #345

Description

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'}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions