<h3 dir="auto">Description</h3>
<p dir="auto">There is a great Operator for Cloud Functions:  <a href="https://airflow.apache.org/docs/apache-airflow-providers-google/stable/operators/cloud/functions.html" rel="nofollow">https://airflow.apache.org/docs/apache-airflow-providers-google/stable/operators/cloud/functions.html</a></p>
<p dir="auto">But, if needing a bit more compute/control than the functions runtime supports, utilizing Cloud Run could be ideal.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">Looking to be able to trigger Cloud Run jobs from Airflow akin to Cloud Functions [ when needing to compute slightly larger things that don't work with Functions ].</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto">I did not see any related issues.</p>
<p dir="auto">Hoping for some comment on whether this would be welcomed.  If nobody else would address, but would be a welcomed contribution, then I am happy to dig into contributing.</p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.3.0 (latest released)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">After upgrade from 2.2.2 to 2.3.0, when I am trying to do <code class="notranslate">airflow db upgrade</code> all I get is following log and then airflow hangs:<br>
<code class="notranslate">Found 16 duplicates in table task_fail.  Will attempt to move them.</code></p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">Airflow should not hang at this log and properly move these duplicates</p>
<h3 dir="auto">How to reproduce</h3>
<ul dir="auto">
<li>Run Airflow 2.2.2</li>
<li>Create duplicates in table task_fail</li>
<li>Update Airflow to 2.3.0 and try upgrading DB</li>
</ul>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Debian 10</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-apache-cassandra==2.0.1 \
apache-airflow-providers-apache-hive==2.0.2 \
apache-airflow-providers-celery==2.1.0 \
apache-airflow-providers-cncf-kubernetes==2.0.2 \
apache-airflow-providers-ftp==2.0.1 \
apache-airflow-providers-http==2.0.1 \
apache-airflow-providers-imap==2.0.1 \
apache-airflow-providers-jdbc==2.0.1 \
apache-airflow-providers-mysql==2.1.1 \
apache-airflow-providers-papermill==2.2.3 \
apache-airflow-providers-postgres==2.2.0 \
apache-airflow-providers-sftp==2.1.1 \
apache-airflow-providers-sqlite==2.0.1 \
apache-airflow-providers-ssh==2.1.1 \
apache-airflow-providers-google==5.1.0 \
apache-airflow-providers-apache-beam==3.1.0 \
apache-airflow-providers-apache-spark==2.0.1 \"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-apache-cassandra==2.0.1 \
apache-airflow-providers-apache-hive==2.0.2 \
apache-airflow-providers-celery==2.1.0 \
apache-airflow-providers-cncf-kubernetes==2.0.2 \
apache-airflow-providers-ftp==2.0.1 \
apache-airflow-providers-http==2.0.1 \
apache-airflow-providers-imap==2.0.1 \
apache-airflow-providers-jdbc==2.0.1 \
apache-airflow-providers-mysql==2.1.1 \
apache-airflow-providers-papermill==2.2.3 \
apache-airflow-providers-postgres==2.2.0 \
apache-airflow-providers-sftp==2.1.1 \
apache-airflow-providers-sqlite==2.0.1 \
apache-airflow-providers-ssh==2.1.1 \
apache-airflow-providers-google==5.1.0 \
apache-airflow-providers-apache-beam==3.1.0 \
apache-airflow-providers-apache-spark==2.0.1 \
</code></pre></div>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other Docker-based deployment</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">Google GKE<br>
2 Instances of Airflow processes running(HA configuration)</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">Problem occurs every time I am trying to update database.</p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>