-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
too long dag description causes scoket error #395
Comments
Same thing. I've set long and descriptive name for a DAG and it stopped working. It looks like a path to a Unix socket cannot be more than 108 bytes long. |
Thanks a lot for reporting the issue. I think we can fix this logic to avoid the max length error. |
I hit this today with a verbose description of the task too :). @yohamta, I'm happy to contribute to fixing it and want to understand if you have preferences on implementation. My first approach would be to simplify the socket by making it only use the md5 so it avoids the irregularities that occur if we truncate the name and append an md5. like so
But I wonder if you want a fragment of task name in there for human simplicity in debug cases? If so, I recommend keeping the first N-characters of the task name such that it always stays within the limit of socket lengths, eg: pseudocode
Such that it's always < 108 bytes. Do you have a preference between those two implementations? The first seems less brittle but the second seems a little more user friendly during debug. |
Ensures that we truncate task names to no more than 60 chars so they don't exceed the total length limit of 108 that's impose by unix. Fixes: dagu-org#395
Ok, pushed up the |
Ensures that we truncate task names to no more than 60 chars so they don't exceed the total length limit of 108 that's impose by unix. Fixes: dagu-org#395
Ensures that we truncate task names to no more than 60 chars so they don't exceed the total length limit of 108 that's impose by unix. Fixes: dagu-org#395
Ensures that we truncate task names to no more than 60 chars so they don't exceed the total length limit of 108 that's impose by unix. Fixes: dagu-org#395
Ensures that we truncate task names to no more than 60 chars so they don't exceed the total length limit of 108 that's impose by unix. Fixes: dagu-org#395
Ensures that we truncate task names to no more than 60 chars so they don't exceed the total length limit of 108 that's impose by unix. Fixes: dagu-org#395
Ensures that we truncate task names to no more than 60 chars so they don't exceed the total length limit of 108 that's impose by unix. Fixes: dagu-org#395
when teh description of one dag is too long, the dag is not start and the error in std_out looks like this.
sample:
"Rapid7_insightVM_rapid7_insightvm_copy_data_to_tenable_tables"
error:
2023/03/08 03:37:39 failed to start socket server listen unix /tmp/@dagu-Rapid7_insightVM_rapid7_insightvm_copy_data_to_tenable_tables-d8e3ed564c22705f7e2958adbeeb3eb5.sock: bind: invalid argument
locks like for a socket server name there is a length restriction. i would try to figure out the maximum length and do not allow input on the WEB UI larger than the maximum field length.
regards
Michael
The text was updated successfully, but these errors were encountered: