[go: nahoru, domu]

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

Console: inconsistent behavior in the simulator #6865

Open
skyrpex opened this issue Jul 8, 2024 · 1 comment
Open

Console: inconsistent behavior in the simulator #6865

skyrpex opened this issue Jul 8, 2024 · 1 comment
Labels
🐛 bug Something isn't working 🛫 console Console

Comments

@skyrpex
Copy link
Contributor
skyrpex commented Jul 8, 2024

It does seem like there's inconsistent behavior in the simulator -- for example if a resource fails to start, in some cases like the one you showed above, the console keeps working fine / the simulator tries to keep running. But in other examples, the failure of one resource to start will cause a blue screen of death, for example try out this example (I ran it with Wing 0.76.19):

bring cloud;
bring util;
bring sim;

let service1 = new sim.Resource(inflight (ctx) => {
  util.sleep(5s);
  // ctx.resolveToken("foo", "foo");
  throw "Oops";
}) as "Service1";

let t1 = service1.createToken("foo");

let service2 = new sim.Resource(inflight (ctx) => {
  util.sleep(5s);
  throw "Oops";
  log(t1);
}) as "Service2";

new cloud.Bucket();

Originally posted by @Chriscbr in #6858 (comment)

@skyrpex skyrpex added 🐛 bug Something isn't working 🛫 console Console labels Jul 8, 2024
@skyrpex
Copy link
Contributor Author
skyrpex commented Jul 10, 2024

Related to #6798

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🛫 console Console
Projects
Status: 🆕 New - not properly defined
Development

No branches or pull requests

1 participant