From 82e2856d9915c481d89ec72ab8ddeacb96069c9b Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Wed, 12 Apr 2023 13:48:52 +0100 Subject: [PATCH] feat(chalice): debugging jobs execution --- api/chalicelib/core/jobs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/chalicelib/core/jobs.py b/api/chalicelib/core/jobs.py index 783cbad2c..88554e314 100644 --- a/api/chalicelib/core/jobs.py +++ b/api/chalicelib/core/jobs.py @@ -111,13 +111,18 @@ def get_scheduled_jobs(): WHERE status = %(status)s AND start_at <= (now() at time zone 'utc');""", {"status": JobStatus.SCHEDULED}) + print(query) cur.execute(query=query) data = cur.fetchall() + print(">>>") + print(data) return helper.list_to_camel_case(data) def execute_jobs(): + print(">>> looking for jobs to execute") jobs = get_scheduled_jobs() + print(jobs) for job in jobs: print(f"Executing jobId:{job['jobId']}")