Change confusing pulsar logs message

Do not print the type of `pulsar_status` (a string) alongside its contents.
This commit is contained in:
José Manuel Domínguez
2023-05-04 09:10:14 +02:00
committed by GitHub
parent e6d09a9ba0
commit ca5eb90bd6
+1 -1
View File
@@ -311,7 +311,7 @@ class PulsarJobRunner(AsynchronousJobRunner):
return job_state
def _update_job_state_for_status(self, job_state, pulsar_status, full_status=None):
log.debug("(%s) Received status update: %s %s", job_state.job_id, type(pulsar_status), pulsar_status)
log.debug("(%s) Received status update: %s", job_state.job_id, pulsar_status)
if pulsar_status in ["complete", "cancelled"] or job_state.job_wrapper.get_state() == model.Job.states.STOPPED:
self.mark_as_finished(job_state)
return None