__author__ = 'luissaguas'


import json
from jnius import PythonJavaClass, java_method

class FrappeTask(PythonJavaClass):
	__javainterfaces__ = ['IFrappeTask']

	def __init__(self, task_id, result):
		super(FrappeTask, self).__init__()
		self.task_id = "Local-" + task_id
		self.result = result

	def setResult(self, result):
		self.result = result

	@java_method('()V')
	def setReadyTask(self):
		from frappe.async import emit_via_redis

		response = {}
		response.update({
			"status": "Success",
			"task_id": self.task_id,
			"result": self.result
		})
		print "before emit task"
		emit_via_redis("task_status_change", response, "task:" + self.task_id)

__author__ = 'luissaguas'


import json
from jnius import PythonJavaClass, java_method

class FrappeTask(PythonJavaClass):
	__javainterfaces__ = ['IFrappeTask']

	def __init__(self, task_id, result):
		super(FrappeTask, self).__init__()
		self.task_id = "Local-" + task_id
		self.result = result

	def setResult(self, result):
		self.result = result

	@java_method('()V')
	def setReadyTask(self):
		from frappe.async import emit_via_redis

		response = {}
		response.update({
			"status": "Success",
			"task_id": self.task_id,
			"result": self.result
		})
		emit_via_redis("task_status_change", response, "task:" + self.task_id)

Remove print.