Closed s-furu closed 1 year ago
Hello, @s-furu
I think you can't use sys.exit
because py>
operator use runner.py
. It calls your script.
What do you think about using return
instead of sys.exit
?
The following example doesn't raise an exception.
class MyClass(object):
def print_time(self):
return
raise Exception("HOGEHOGE")
timezone: UTC
+setup:
py>: scripts.myclass.MyClass.print_time
Otherwise, you can use sh>
operator.
Hi @hiroyuki-sato,
I understand the internal process. Thank you for the navigation and the alternative manner!
digdag 0.10.4 python 3.9.2
I want to exit from py file as success status, but the bellow script does not finish as success status but as failure status.
The error message is here.
Is any module in Java interfering with python sys module?