Skip to content

Commit

Permalink
feat(proto): add details to error status
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Jun 15, 2020
1 parent 941aa77 commit 0c0c8fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions jina/peapods/pea.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def handle(self, msg: 'jina_pb2.Message') -> 'BasePea':
:param msg: the message received
"""
if msg.envelope.status.code < jina_pb2.Status.ERROR:
self.executor(self.request_type)
self.executor(self.request_type)
return self

@property
Expand Down
4 changes: 4 additions & 0 deletions tests/test_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ def craft(self, *args, **kwargs):
f = (Flow().add(name='r1', yaml_path='_forward')
.add(name='r2', yaml_path='!DummyCrafter')
.add(name='r3', yaml_path='!BaseEncoder'))

with f:
f.dry_run()

with f:
f.index_lines(lines=['abbcs', 'efgh'], output_fn=validate)

Expand Down

0 comments on commit 0c0c8fe

Please sign in to comment.