Closed Hi-king closed 3 years ago
Everytime I'm debugging it as follows.
gokart.build(A(), verbose=True)
I've always wanted a better way.
Thx. I think it can be better to output task logs when final output will not be found :)
My work arround which prints the raised exception
import gokart
class A(gokart.TaskOnKart):
def on_failure(self, exception):
import traceback
traceback.print_exc()
return super().on_failure(exception)
def run(self):
raise Exception()
self.dump("done")
gokart.build(A())
It's similar: https://github.com/m3dev/gokart/issues/224
I think It is best if luigi returns stacktrace. ( https://github.com/spotify/luigi/issues/3095 ) If not it would be good to implement TaylerUva's method in gokart
gokart.build(Task(), log_level=logging.ERROR)
let me know Exceptions() in run() :)class Task(gokart.TaskOnKart):
def run(self):
raise Exception()
gokart.build(Task(), log_level=logging.ERROR)
Thx all!