Skip to content

Commit

Permalink
handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Jun 28, 2024
1 parent dd2e9f8 commit df24bfb
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,25 +151,25 @@ def worker_init_handler(sender=None, **kwargs):
logging.info("worker_init_handler end.")


# @worker_process_init.connect
# def worker_process_init_handler(sender=None, **kwargs):
# logging.info("worker_process_init_handler start.")
# init_tracing()
# logging.info("worker_process_init_handler end.")
@worker_process_init.connect
def worker_process_init_handler(sender=None, **kwargs):
logging.info("worker_process_init_handler start.")
init_tracing()
logging.info("worker_process_init_handler end.")


# @worker_ready.connect
# def worker_ready_handler(sender=None, **kwargs):
# logging.info("worker_ready_handler start.")
# init_tracing()
# logging.info("worker_ready_handler end.")
@worker_ready.connect
def worker_ready_handler(sender=None, **kwargs):
logging.info("worker_ready_handler start.")
init_tracing()
logging.info("worker_ready_handler end.")


# @task_prerun.connect
# def task_prerun_handler(sender=None, **kwargs):
# logging.info("task_prerun_handler start.")
# init_tracing()
# logging.info("task_prerun_handler end.")
@task_prerun.connect
def task_prerun_handler(sender=None, **kwargs):
logging.info("task_prerun_handler start.")
init_tracing()
logging.info("task_prerun_handler end.")


@task_postrun.connect
Expand Down

0 comments on commit df24bfb

Please sign in to comment.