-
Notifications
You must be signed in to change notification settings - Fork 63
Make list execution transformer configurable #555
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Pradithya Aria <[email protected]>
08bac41
to
93c4007
Compare
Codecov Report
@@ Coverage Diff @@
## master #555 +/- ##
==========================================
+ Coverage 58.85% 60.51% +1.65%
==========================================
Files 170 172 +2
Lines 16068 13309 -2759
==========================================
- Hits 9457 8054 -1403
+ Misses 5777 4409 -1368
- Partials 834 846 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message length limitation was added as part of this PR #523 due to some ListExecution API's reaching the max grpc message limit.
Max grpc limit size is 4MB, with that size even considering just this lenght of the error message , the List Api can return around 400 executions in the listApi but given that per page limit is 100 this should still be ok. More preferable IMO but would be separate trimmedErrMessageLen for list API calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on second thought @pradithya - can you make this configurable? your new value as the default is fine, but it would be nice to be configurable.
Make sense, let me have a look. |
Signed-off-by: Pradithya Aria Pura <[email protected]>
@wild-endeavor I updated the PR to make it configurable. But it seems the CI is failing due to Github action rate limit. Can you help retry it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pradithya Thanks, LGTM. Could you resolve branch conflict?
TL;DR
Add configuration in flyte admin to control the behavior of the list execution transformer with regard to error message trimming.
Type
Are all requirements met?
Complete description
A hardcoded value of
trimmedErrMessageLen
is used to limit the error message shown in the workflow execution list. The current value is too small that the error message in the list execution page is not informative. Users must go to the corresponding execution details to get the entire error message even for a short error message.This PR add configuration in flyte admin to control whether the error message truncation is enabled and the maximum message length when truncation is enabled. The default is to truncate error messages for list execution API with a maximum error message length of 10240 so that most error messages can be shown properly.
Screen.Recording.2023-05-04.at.4.15.39.PM.mov
Follow-up issue
NA