Skip to content

Commit

Permalink
Execution edge now marked in dotted
Browse files Browse the repository at this point in the history
Signed-off-by: Swarvanu Sengupta <swarvanusg@gmail.com>
  • Loading branch information
s8sg committed Dec 14, 2018
1 parent 02ddefb commit cacd1ee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions sdk/dot.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ func generateDag(dag *Dag, sb *strings.Builder, indent string) string {

childOperationKey := generateOperationKey(nextOperationDag.Id, nextOperationNode.index, 1, operation)

if node.GetForwarder(child.Id) == nil {
relation = relation + " - nodata"
}

if previousOperation != "" {
sb.WriteString(fmt.Sprintf("\n%s\"%s\" -> \"%s\" [label=\"%s\" color=grey];",
indent, previousOperation, childOperationKey, relation))
if node.GetForwarder(child.Id) == nil {
sb.WriteString(
fmt.Sprintf("\n%s\"%s\" -> \"%s\" [style=dashed label=\"%s\" color=grey];",
indent, previousOperation, childOperationKey, relation))
} else {
sb.WriteString(fmt.Sprintf("\n%s\"%s\" -> \"%s\" [label=\"%s\" color=grey];",
indent, previousOperation, childOperationKey, relation))
}
}
}
} else {
Expand Down
14 changes: 8 additions & 6 deletions template/faas-flow/vendor/github.com/s8sg/faas-flow/sdk/dot.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cacd1ee

Please sign in to comment.