File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -301,6 +301,12 @@ def set_built_packages(self):
301301
302302 def run (self ):
303303 run_start_time = datetime .now (timezone .utc )
304+ logger .info (
305+ f"[CELERY_EXEC] CoprBuildEndHandler execution started for "
306+ f"build_id={ self .copr_event .build_id } "
307+ f"chroot={ self .copr_event .chroot } "
308+ f"at { run_start_time .isoformat ()} "
309+ )
304310 if not self .build :
305311 # TODO: how could this happen?
306312 model = "SRPMBuildDB" if self .copr_event .chroot == COPR_SRPM_CHROOT else "CoprBuildDB"
Original file line number Diff line number Diff line change 5757
5858def celery_run_async (signatures : list [Signature ]) -> None :
5959 logger .debug ("Signatures are going to be sent to Celery (from babysit task)." )
60+ # Extract build_id from signatures for tracking
61+ build_ids = [
62+ str (build_id )
63+ for sig in signatures
64+ if sig .kwargs and (build_id := sig .kwargs .get ("event" , {}).get ("build_id" ))
65+ ]
66+ build_ids_str = ", " .join (build_ids ) if build_ids else "unknown"
67+ queued_time = datetime .now (timezone .utc )
68+ logger .info (
69+ f"[CELERY_QUEUE] Queuing { len (signatures )} task(s) for Copr build(s) { build_ids_str } "
70+ f"at { queued_time .isoformat ()} "
71+ )
6072 # https://docs.celeryq.dev/en/stable/userguide/canvas.html#groups
6173 celery .group (signatures ).apply_async ()
6274 logger .debug ("Signatures were sent to Celery." )
You can’t perform that action at this time.
0 commit comments