Skip to content

Commit 53071cf

Browse files
committed
add more debugging messages
1 parent b20b770 commit 53071cf

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

lib/galaxy/jobs/runners/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,20 @@ def monitor(self):
873873
# TODO: This is where any cleanup would occur
874874
self.handle_stop()
875875
return
876+
try:
877+
job_id_tag = async_job_state.job_wrapper.get_id_tag()
878+
external_id = getattr(async_job_state, "job_id", None)
879+
except Exception:
880+
job_id_tag = UNKNOWN
881+
external_id = None
882+
log.debug(
883+
"%s: moving job to watched list (job=%s external=%s watched_size_before=%d queue_size_after_pop=%d)",
884+
self.runner_name,
885+
job_id_tag,
886+
external_id,
887+
len(self.watched),
888+
self.monitor_queue.qsize(),
889+
)
876890
self.watched.append(async_job_state)
877891
except Empty:
878892
pass

lib/galaxy/jobs/runners/condor.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,19 @@ def queue_job(self, job_wrapper):
177177
cjs.job_destination = job_destination
178178

179179
# Add to our 'queue' of jobs to monitor
180+
log.debug(
181+
"(%s/%s) enqueueing condor job state to monitor queue (size before enqueue: %d)",
182+
galaxy_id_tag,
183+
external_job_id,
184+
self.monitor_queue.qsize(),
185+
)
180186
self.monitor_queue.put(cjs)
187+
log.debug(
188+
"(%s/%s) condor job state enqueued (size after enqueue: %d)",
189+
galaxy_id_tag,
190+
external_job_id,
191+
self.monitor_queue.qsize(),
192+
)
181193

182194
def check_watched_items(self):
183195
"""

0 commit comments

Comments
 (0)