# Regression with job submission and auto-cancel when going from API V1.1 to API V2

**URL:** <https://discuss.circleci.com/t/regression-with-job-submission-and-auto-cancel-when-going-from-api-v1-1-to-api-v2/42092>\
**Category:** Bug Reports\
**Created:** [November 30, 2021, 7:05am UTC](https://discuss.circleci.com/t/regression-with-job-submission-and-auto-cancel-when-going-from-api-v1-1-to-api-v2/42092 "2021-11-30T07:05:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![francisu](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@francisu](https://discuss.circleci.com/u/francisu)\
**Post date:** [November 30, 2021, 7:05am UTC](https://discuss.circleci.com/t/regression-with-job-submission-and-auto-cancel-when-going-from-api-v1-1-to-api-v2/42092/1 "2021-11-30T07:05:54Z")

</div>

I was using the V1.1 API to submit jobs. I have auto-cancel set on my project, and when I used the V1.1 API to submit multiple jobs on a branch, it did not cancel any job running, which was desired. Auto-cancel makes sense for builds triggered by source control, but it’s reasonable to ignore auto-cancel when a job is submitted explicitly by the API, which V1.1 does.

Having upgraded to pipelines, I moved to configuration version 2.1, which forced me to move to API V2. In this case, submitting a pipeline when auto-cancel is set on my project canceled any running jobs on that branch, which is not desired. There appears to be no workaround for this (except manually turning off auto-cancel in the console). If there was an API where I could turn off auto-cancel, I could live with this, as I could wrap my job submission with calls to toggle the auto-cancel on the project, but sadly, there is not.

This is a significant regression in the API functionality. There should at least be an option in API V2 to ignore auto-cancel when submitting a particular pipeline.

Please address this soon as this has broken an important part of how we use CircleCI.
