Skip to content

Commit

Permalink
add write command to make %SYS.Python calls work
Browse files Browse the repository at this point in the history
otherwise it is SYNTAX all the time
  • Loading branch information
evshvarov authored Sep 23, 2023
1 parent a82e936 commit d8f95bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_python_task(cls, name, schedule, command, run_now=True) -> int:
# get byref
tid = iris.ref(0)

command = f'##class(%SYS.Python).Run("{command}")'
command = f'w ##class(%SYS.Python).Run("{command}")'

cls.raise_on_error(iris.cls('dc.cron.task').Start(name, schedule, command, run_now, tid))

Expand Down

0 comments on commit d8f95bd

Please sign in to comment.