Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1677)

Unified Diff: appengine/swarming/ui/res/imp/common/task-behavior.html

Issue 2497663003: Make silent task retries more obvious (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/ui/res/imp/common/task-behavior.html
diff --git a/appengine/swarming/ui/res/imp/common/task-behavior.html b/appengine/swarming/ui/res/imp/common/task-behavior.html
index 970a461695215332237d7baa6d65f53a2b5b62f4..8788e2b4e54452e119472b545322ff1bfade29cb 100644
--- a/appengine/swarming/ui/res/imp/common/task-behavior.html
+++ b/appengine/swarming/ui/res/imp/common/task-behavior.html
@@ -75,7 +75,27 @@
return "pending_task";
}
return "";
- }
+ },
+
+ state: function(result) {
+ if (!result) {
+ return "";
+ }
+ if (result.state === this.COMPLETED) {
+ if (result.failure) {
+ return this.COMPLETED_FAILURE;
+ }
+ if (result.try_number === "0") {
+ return this.COMPLETED_DEDUPED;
+ }
+ return this.COMPLETED_SUCCESS;
+ }
+ return result.state;
+ },
+
+ _stateClass: function(result) {
+ return this.stateClass(this.state(result));
+ },
};
})();
</script>

Powered by Google App Engine
This is Rietveld 408576698