You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Session dependency check has only steps of checking "Sessions.result" column of depending sessions.
The value of result is SUCCESS if the session's main kernel finishes its batch job finish without any error.
Else, the result would be fail, which means the batch job occurs any error.
We could improve the dependency check logic to control session creation flow with conditions.
I suggest to implement like below.
Add a condition field to the session dependency (or session) table. Receive it as a string that can be executed as a command in the kernel, and run as a command service in the kernel before the batch compute session ends. The command string parse and validation could be done in manager by adapting minilang. The result of this execution must be a SUCESS for the execution to be a success.
It would be nice to have an on_fail in the condition as well, to cover the case where the execution result is fail (in general, if the batch session occurs any error).
Main idea
Currently, Session dependency check has only steps of checking "Sessions.result" column of depending sessions.
The value of
result
isSUCCESS
if the session's main kernel finishes its batch job finish without any error.Else, the
result
would be fail, which means the batch job occurs any error.We could improve the dependency check logic to control session creation flow with conditions.
I suggest to implement like below.
SUCESS
for the execution to be a success.on_fail
in the condition as well, to cover the case where the execution result is fail (in general, if the batch session occurs any error).Reference
Alternative ideas
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: