Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Fix logic of marking task as failed #3083

Merged
merged 7 commits into from
May 4, 2023
Merged

Conversation

chkeita
Copy link
Contributor

@chkeita chkeita commented May 3, 2023

  • Do not mark task as failed if it is already in the shutting down state
  • accumulate errors when setting task error to understand the context
  • refactor the Error record

closes #3084

chkeita added 3 commits May 3, 2023 12:03
- Do not mark task as failed if it is already in the shutting down state
- accumulate errors when setting task error to understand the context
- refactor the Error record
@chkeita chkeita changed the title Fix logic of markaing task as failed Fix logic of marking task as failed May 3, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 3, 2023

Codecov Report

Merging #3083 (6a49e0f) into main (d237563) will decrease coverage by 0.03%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##             main    #3083      +/-   ##
==========================================
- Coverage   31.78%   31.75%   -0.03%     
==========================================
  Files         307      307              
  Lines       36814    36770      -44     
==========================================
- Hits        11700    11678      -22     
+ Misses      25114    25092      -22     
Impacted Files Coverage Δ
...piService/ApiService/Functions/AgentCanSchedule.cs 0.00% <0.00%> (ø)
.../ApiService/Functions/Migrations/JinjaToScriban.cs 80.00% <0.00%> (ø)
...c/ApiService/ApiService/Functions/NodeAddSshKey.cs 0.00% <0.00%> (ø)
...c/ApiService/ApiService/Functions/Notifications.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/Functions/Proxy.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/Functions/Scaleset.cs 40.74% <0.00%> (+1.45%) ⬆️
src/ApiService/ApiService/Functions/Tasks.cs 22.22% <0.00%> (ø)
src/ApiService/ApiService/Functions/WebhookLogs.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/Functions/WebhookPing.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/Functions/Webhooks.cs 0.00% <0.00%> (ø)
... and 25 more

@chkeita chkeita requested review from tevoinea and Porges May 3, 2023 19:59
chkeita and others added 3 commits May 4, 2023 12:18
Co-authored-by: George Pollard <porges@porg.es>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
@chkeita chkeita enabled auto-merge (squash) May 4, 2023 19:18
@chkeita chkeita merged commit bb1a544 into microsoft:main May 4, 2023
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request May 4, 2023
@nharper285 nharper285 mentioned this pull request May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix logic of marking task as failed
4 participants