aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2015-02-24 15:52:39 -0800
committerGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2015-02-24 15:52:39 -0800
commit78c96071b67518d0cef5dfd690a0fe82cbcc0f0d (patch)
treedc436abdcaade29bd27018f045b8f7571fbaecc2
parentab399fa559a9f8e84f74661828381e045c2adfc2 (diff)
parentf4e3f3f8d6d816bab51c576e680c65faeaece30e (diff)
Merge pull request #753 from nathanielmanistaatgoogle/cancellation-ticket-kind
Avoid CANCELLATION ticket kind for back-to-front tickets.
-rw-r--r--src/python/src/grpc/_adapter/rear.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/src/grpc/_adapter/rear.py b/src/python/src/grpc/_adapter/rear.py
index d16fbeecf7..94ff66ffda 100644
--- a/src/python/src/grpc/_adapter/rear.py
+++ b/src/python/src/grpc/_adapter/rear.py
@@ -170,7 +170,8 @@ class RearLink(ticket_interfaces.RearLink, activated.Activated):
if event.status.code is _low.Code.OK:
category = tickets.Kind.COMPLETION
elif event.status.code is _low.Code.CANCELLED:
- category = tickets.Kind.CANCELLATION
+ # TODO(issue 752): Use a CANCELLATION ticket kind here.
+ category = tickets.Kind.SERVICER_FAILURE
elif event.status.code is _low.Code.EXPIRED:
category = tickets.Kind.EXPIRATION
else: