Skip to content

Commit

Permalink
120: Print out ESDL messages on example SDK scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
lfse-slafleur committed Dec 3, 2024
1 parent df6040e commit f789813
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example_sdk_client/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def handle_on_finished(job: Job, result: JobResult):
print("--------------ESDL:")
print(result.output_esdl)
print()
print("--------------ESDL messages:")
print(result.esdl_messages)
print("--------------Result")
print(
f"Job {job.id} is done (type: {job.workflow_type.workflow_type_name}). "
Expand Down
2 changes: 2 additions & 0 deletions example_sdk_client/optimizer_cancel.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def handle_on_finished(job: Job, result: JobResult):
print("--------------ESDL:")
print(result.output_esdl)
print()
print("--------------ESDL messages:")
print(result.esdl_messages)
print("--------------Result")
print(
f"Job {job.id} is done (type: {job.workflow_type.workflow_type_name}). "
Expand Down
2 changes: 2 additions & 0 deletions example_sdk_client/reconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def handle_on_finished(job: Job, result: JobResult):
print("--------------ESDL:")
print(result.output_esdl)
print()
print("--------------ESDL messages:")
print(result.esdl_messages)
print("--------------Result")
print(
f"Job {job.id} is done (type: {job.workflow_type.workflow_type_name}). "
Expand Down
2 changes: 2 additions & 0 deletions example_sdk_client/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def handle_on_finished(job: Job, result: JobResult):
print("--------------ESDL:")
print(result.output_esdl)
print()
print("--------------ESDL messages:")
print(result.esdl_messages)
print("--------------Result")
print(
f"Job {job.id} is done (type: {job.workflow_type.workflow_type_name}). "
Expand Down

0 comments on commit f789813

Please sign in to comment.