We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Queue.setConsumer
bring cloud; class MyService { queue: cloud.Queue; bucket: cloud.Bucket; new() { this.queue = new cloud.Queue(); this.bucket = new cloud.Bucket(); this.queue.setConsumer(inflight () => { this.doSomething(); }); } inflight doSomething() { this.bucket.put("test.json", "test"); } } new MyService();
There's a missing arrow / connection between Queue and Bucket.
Connection data:
{ "version": "connections-0.1", "connections": [ { "source": "root/Default/MyService/Queue", "sourceOp": "push", "target": "root/Default/MyService/Queue/Consumer0", "targetOp": "invoke", "name": "consumer" }, { "source": "root/Default/MyService", "sourceOp": "doSomething", "target": "root/Default/MyService/Bucket", "targetOp": "put", "name": "call" }, { "source": "root/Default/MyService/Queue/Consumer0", "sourceOp": "invoke", "target": "root/Default/MyService", "targetOp": "doSomething", "name": "call" }, { "source": "root/Default/MyService/Queue/Consumer0", "sourceOp": "invokeAsync", "target": "root/Default/MyService", "targetOp": "doSomething", "name": "call" } ] }
If I remove the doSomething() method (and inline the logic instead) the arrow appears correctly.
doSomething()
bring cloud; class MyService { queue: cloud.Queue; bucket: cloud.Bucket; new() { this.queue = new cloud.Queue(); this.bucket = new cloud.Bucket(); this.queue.setConsumer(inflight () => { this.bucket.put("test.json", "test"); }); } } new MyService();
{ "version": "connections-0.1", "connections": [ { "source": "root/Default/MyService/Queue", "sourceOp": "push", "target": "root/Default/MyService/Queue/Consumer0", "targetOp": "invoke", "name": "consumer" }, { "source": "root/Default/MyService/Queue/Consumer0", "sourceOp": "invoke", "target": "root/Default/MyService/Bucket", "targetOp": "put", "name": "call" }, { "source": "root/Default/MyService/Queue/Consumer0", "sourceOp": "invokeAsync", "target": "root/Default/MyService/Bucket", "targetOp": "put", "name": "call" } ] }
No response
0.85.12
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried this:
This happened:
There's a missing arrow / connection between Queue and Bucket.
Connection data:
I expected this:
Is there a workaround?
If I remove the
doSomething()
method (and inline the logic instead) the arrow appears correctly.Connection data:
Anything else?
No response
Wing Version
0.85.12
Node.js Version
No response
Platform(s)
No response
Community Notes
The text was updated successfully, but these errors were encountered: