Skip to content

Commit

Permalink
Handle case where function produces some output but no output topic g…
Browse files Browse the repository at this point in the history
…iven (apache#2941)
  • Loading branch information
srkukarni authored and sijie committed Nov 6, 2018
1 parent 76b46a5 commit be0fe35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pulsar-functions/instance/src/main/python/python_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def done_producing(self, consumer, orig_message, result, sent_message):
consumer.acknowledge(orig_message)

def process_result(self, output, msg):
if output is not None:
if output is not None and self.instance_config.function_details.sink.topic != None and \
len(self.instance_config.function_details.sink.topic) > 0:
if self.output_serde is None:
self.setup_output_serde()
if self.producer is None:
Expand Down

0 comments on commit be0fe35

Please sign in to comment.