John Shearer
11/16/2021, 11:35 AMAnna Geller
# PrefectStateSignals are trapped and turned into States
except signals.PrefectStateSignal as exc:
<http://self.logger.info|self.logger.info>(
"{name} signal raised: {rep}".format(
name=type(exc).__name__, rep=repr(exc)
)
)
if raise_on_exception:
raise exc
new_state = exc.state
In general, Prefect handles the state transition for you, so you shouldn’t have to worry about it.John Shearer
11/16/2021, 12:00 PMonly informing that a signal has been raised, which seems to be a valid INFO log messageyes, definitely valid. I'm just thinking it might be useful to log it as a warning, for increased visibility in logs (especially when not running through a prefect server (locally or on CI). (I can catch the exception during dev and the behaviour is of the program is correct, this is only about making this more visible in log out) Does that make sense?
Anna Geller
Anna Geller
Anna Geller
John Shearer
11/16/2021, 5:25 PM