Skip to content
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

Help Request: Operator Precedence Issue (I think?) #458

Closed
ck3mp opened this issue Feb 3, 2021 · 0 comments
Closed

Help Request: Operator Precedence Issue (I think?) #458

ck3mp opened this issue Feb 3, 2021 · 0 comments

Comments

@ck3mp
Copy link

ck3mp commented Feb 3, 2021

Sorry if this isn't the right place but I can't seem to find a forum etc.

Just started using this library and its fantastic.

I'm having an issue with what I think is operator precedence but struggling to understand it.

from diagrams import Diagram, Edge, Cluster, Node
from diagrams.aws.compute import Lambda
from diagrams.aws.integration import SQS

with Diagram("Downloading Process Flow", show=False):

    main_extract_q = SQS("Main Extract Queue")
    proc_extract_q = SQS("Processing Queue")

    node_1 = Node("")
    node_2 = Node("")

    api_edge = Edge(label="API Payloads")
    json_edge = Edge(label="JSON File paths")

    with Cluster("Download Workers"):
        download_workers = [
            Lambda("Worker 1"),
            Lambda("Worker 2"),
            Lambda("Worker 3"),
        ]

    main_extract_q - node_1 >> api_edge >> download_workers >> json_edge - node_2 >> proc_extract_q

Gives me this:

image

If I turn the second "-" to ">>" I get this which is closer but I still want no arrows going to the second blank node...
main_extract_q - node_1 >> api_edge >> download_workers >> json_edge >> node_2 >> proc_extract_q

image

(The nodes are oversized to help me understand them, I will make them invisible ones just as a junction)

Is this possible?

@ck3mp ck3mp closed this as completed Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant