Skip to content

Commit 5d3742e

Browse files
authored
add more debugging
1 parent 2aeb209 commit 5d3742e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/webapp/databricks.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,21 @@ def run_pdp_inference(
118118
"run_pdp_inference() requires PDP_COURSE and PDP_COHORT type files to run."
119119
)
120120
print('aaaaaaaaaaaaaaaaaa1')
121+
print(databricks_vars["DATABRICKS_HOST_URL"])
122+
print(gcs_vars["GCP_SERVICE_ACCOUNT_EMAIL"])
121123
w = WorkspaceClient(
122124
host=databricks_vars["DATABRICKS_HOST_URL"],
123125
google_service_account=gcs_vars["GCP_SERVICE_ACCOUNT_EMAIL"],
124126
)
125127
db_inst_name = databricksify_inst_name(req.inst_name)
126128
print('aaaaaaaaaaaaaaaaaa2')
127-
job_id = next(w.jobs.list(name=pdp_inference_job_name)).job_id
129+
list_jobs = w.jobs.list(name=pdp_inference_job_name)
130+
print('aaaaaaaaaaaaaaaaaa2.5')
131+
print(list_jobs)
132+
job = next(list_jobs)
133+
print('aaaaaaaaaaaaaaaaaa2.75')
134+
print(job)
135+
job_id = job.job_id
128136
print('aaaaaaaaaaaaaaaaaa3:'+str(job_id))
129137
print(databricks_vars["DATABRICKS_WORKSPACE"])
130138
run_job = w.jobs.run_now(

0 commit comments

Comments
 (0)