diff --git a/src/python/task.py b/src/python/task.py index 20a22c5..5ce44a6 100644 --- a/src/python/task.py +++ b/src/python/task.py @@ -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))