ancient-wolf-19325
08/01/2024, 1:04 PMfyamacey , why is it so? is there any logic behind this or is this completely random? and how this id is generated?
# Answer
Node IDs in Flyte are typically generated in a predictable sequence (e.g., n0, n1, n2, etc.). However, when the node ID exceeds a certain length or in deeply nested structures, Flyte uses a hashing mechanism to ensure uniqueness and manageability. This is why you might see seemingly random strings like fyamacey for some nodes.
According to Flyte's dynamic workflow code, node IDs are hashed if they exceed a certain number of characters. This hashing ensures that the node IDs remain unique and within a manageable length, especially in complex or deeply nested workflows.
Would you like more details on the hashing mechanism or how to handle these IDs in your workflows?
Sources:
- Flyte dynamic workflow code
- Flyte issue discussion
Slack Link
https://flyte-org.slack.com/archives/CP2HDHKE1/p1722517481.918639 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.