# Constantly getting Quality Gate failed: Compute engine task did not complete within time

**URL:** <https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236>\
**Category:** SonarQube Cloud\
**Tags:** quality-gate, sonarqube-cloud\
**Created:** [September 23, 2021, 8:41am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236 "2021-09-23T08:41:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomaszG](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TomaszG](https://community.sonarsource.com/u/TomaszG)\
**Post date:** [September 23, 2021, 8:41am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/1 "2021-09-23T08:41:38Z")

</div>

We have bitbucket pipeline configured with sonarcloud-scan and sonarcloud-quality-gate. Since few days most of all attempts during working hours (8AM-5PM CET) are failing due to **Quality Gate failed: Compute engine task did not complete within time** :

- versions used (sonarsource/sonarcloud-quality-gate:0.1.4 - also tried with 0.1.5)

```auto
 - pipe: sonarsource/sonarcloud-scan:1.2.0
 - pipe: sonarsource/sonarcloud-quality-gate:0.1.4

```

- error observed:

```auto
Status: Downloaded newer image for sonarsource/sonarcloud-quality-gate:0.1.4
.............................................................✖ Quality Gate failed: Compute engine task did not complete within time

```

- potential workaround - pipelines run successfully during evenings (~6PM CET)

This issue is critical and delays out development process.

---

<div class="post-metadata">

**Author:** ![TomaszG](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TomaszG](https://community.sonarsource.com/u/TomaszG)\
**Post date:** [September 24, 2021, 9:39am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/2 "2021-09-24T09:39:17Z")

</div>

Yesterday 2 attempts from more than 30 attempts have completed succesfully (even during evening/night). This problem chokes our development process…

---

<div class="post-metadata">

**Author:** ![TomaszG](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TomaszG](https://community.sonarsource.com/u/TomaszG)\
**Post date:** [September 27, 2021, 7:35am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/3 "2021-09-27T07:35:48Z")

</div>

The problem still occurs and chokes out development process. Any advices? What is the source of the problem? Any workaround/solution?

---

<div class="post-metadata">

**Author:** ![Marcin\_Majewski](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marcin_majewski/32/15358_2.png) [@Marcin\_Majewski](https://community.sonarsource.com/u/Marcin_Majewski)\
**Post date:** [October 13, 2021, 7:40am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/4 "2021-10-13T07:40:51Z")

</div>

Hey @TomaszG,

Apologies for the late response, do you still experience the issue?  
Did the tasks complete successfully if you go to [sonarcloud.io](http://sonarcloud.io)?  
The default timeout is equal to 5 minutes, you could potentially increase the timeout by setting the SONAR\_QUALITY\_GATE\_TIMEOUT variable.

Best,  
Marcin

---

<div class="post-metadata">

**Author:** ![TomaszG](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TomaszG](https://community.sonarsource.com/u/TomaszG)\
**Post date:** [October 13, 2021, 12:09pm UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/5 "2021-10-13T12:09:44Z")

</div>

Hi @Marcin_Majewski!  
I’m still experiencing this issue… I have tried to set SONAR\_QUALITY\_GATE\_TIMEOUT variable, but I face the same issue as described [here](https://community.sonarsource.com/t/timeout-parameter-not-able-to-use-in-pipeline-sonarcloud-quality-gate/31093). I have tried few options: **“450”** , **‘450’** (format suggested by the documentation) and **450** , but so far no success (getting **unsupported operand type(s) for //: ‘str’ and ‘int’** error).

I found this [ticket](https://jira.sonarsource.com/browse/SCCOMM-44) that is related, but it’s still marked as unresolved.

Do you have any suggestions?

---

<div class="post-metadata">

**Author:** ![TomaszG](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TomaszG](https://community.sonarsource.com/u/TomaszG)\
**Post date:** [October 20, 2021, 7:54am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/6 "2021-10-20T07:54:17Z")

</div>

@Marcin_Majewski, did you get any updates on the bug? How can I move this topic further? It’s huge problem for us!

---

<div class="post-metadata">

**Author:** ![Marcin\_Majewski](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marcin_majewski/32/15358_2.png) [@Marcin\_Majewski](https://community.sonarsource.com/u/Marcin_Majewski)\
**Post date:** [October 20, 2021, 9:32am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/7 "2021-10-20T09:32:49Z")

</div>

Hi @TomaszG,

New version of sonarcloud-quality-gate has been just released that fixes the bug with SONAR\_QUALITY\_GATE\_TIMEOUT. The new version is: 0.1.6

Can you try with this one?

Best,  
Marcin

---

<div class="post-metadata">

**Author:** ![TomaszG](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TomaszG](https://community.sonarsource.com/u/TomaszG)\
**Post date:** [October 21, 2021, 6:22am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/8 "2021-10-21T06:22:26Z")

</div>

@Marcin_Majewski Finally I was able to set the SONAR\_QUALITY\_GATE\_TIMEOUT variable. I will observe the effectiveness of the new setup (for now it seems to work). Thanks for your support!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [October 28, 2021, 6:22am UTC](https://community.sonarsource.com/t/constantly-getting-quality-gate-failed-compute-engine-task-did-not-complete-within-time/50236/9 "2021-10-28T06:22:54Z")

</div>

Closed on October 28, 2021, 6:22am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
