Skip to content

Commit

Permalink
Fix deadlock in example script when run inside PA
Browse files Browse the repository at this point in the history
  • Loading branch information
yatmanov committed Feb 20, 2024
1 parent 0d59a5a commit 51e4d2f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/execute_and_save_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import time
import polyanalyst6api

server_url = '' # protocol, domain, port : https://www.example.com/ or https://localhost:5043/
Expand All @@ -11,9 +10,5 @@
with polyanalyst6api.API(server_url, username, password) as api:
prj = api.project(project_id)

prj.execute(node_name)
prj.execute(node_name, wait=True)
prj.save()

# wait until node is executed and project is saved
while prj.is_running(wave_id=-1):
time.sleep(1)

0 comments on commit 51e4d2f

Please sign in to comment.