MCPcopy
hub / github.com/1Panel-dev/MaxKB / handle_task_end

Method handle_task_end

apps/ops/celery/logger.py:220–227  ·  view source on GitHub ↗
(self, task_id)

Source from the content-addressed store, hash-verified

218 self.thread_id_fd_mapper[thread_id] = f
219
220 def handle_task_end(self, task_id):
221 maxkb_logger.debug('handle_task_end')
222 ident_id = self.task_id_thread_id_mapper.get(task_id, '')
223 f = self.thread_id_fd_mapper.pop(ident_id, None)
224 if f and not f.closed:
225 f.write(CELERY_LOG_MAGIC_MARK)
226 f.close()
227 self.task_id_thread_id_mapper.pop(task_id, None)

Callers

nothing calls this directly

Calls 5

debugMethod · 0.45
getMethod · 0.45
popMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected