arthur/worker.py
def perform_job(self, job, queue):
        """Custom method to execute a job and notify of its result

        :param job: Job object
        :param queue: the queue containing the object
        """

        result = super().perform_job(job, queue)

        job_status = job.get_status()
        job_result = job.return_value if job_status == 'finished' else None

        data = {
            'job_id': job.id,
            'status': job_status,
            'result': job_result
        }

        msg = pickle.dumps(data)
        self.connection.publish(self.pubsub_channel, msg)

        return result
def perform_job(self, job, queue):
        result = super().perform_job(job, queue)

        job_status = job.get_status()
        job_result = job.return_value if job_status == 'finished' else None

        data = {
            'job_id': job.id,
            'status': job_status,
            'result': job_result
        }

        msg = pickle.dumps(data)
        self.connection.publish(self.pubsub_channel, msg)

        return result
def perform_job ( self , job , queue ) : result = super ( ) . perform_job ( job , queue ) job_status = job . get_status ( ) job_result = job . return_value if job_status == 'finished' else None data = { 'job_id' : job . id , 'status' : job_status , 'result' : job_result } msg = pickle . dumps ( data ) self . connection . publish ( self . pubsub_channel , msg ) return result
Custom method to execute a job and notify of its result

        :param job: Job object
        :param queue: the queue containing the object
Custom method to execute a job and notify of its result