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

before a pico is deleted, its subscriptions should be deleted #511

Open
b1conrad opened this issue Dec 26, 2020 · 3 comments
Open

before a pico is deleted, its subscriptions should be deleted #511

b1conrad opened this issue Dec 26, 2020 · 3 comments
Assignees

Comments

@b1conrad
Copy link
Member

otherwise it becomes impossible to remove the subscription from the other pico, even though it still remains

@b1conrad
Copy link
Member Author

Temporarily, I treated the wrangler:subscription_cancellation event as if it involved a different pico-engine. And I was able to remove such a subscription.

See issue #498 which may be related

@b1conrad b1conrad self-assigned this Jan 5, 2021
@b1conrad
Copy link
Member Author

b1conrad commented Mar 4, 2022

Proposed this way to fix it, to a CS462 student:

ruleset subscription_fixes {
  rule emergencyFix {
    select when emergency dangling_subscription
      Id re#(.+)#
    fired {
      raise wrangler event "established_removal" attributes event:attrs
    }
  }
}

to be installed in the pico with the dangling subscription, and invoked from the Testing tab, passing in the Id of the incomplete subscription (available in either the Logging tab of a failed deletion attempt, or simply in the Subscriptions tab).

@b1conrad
Copy link
Member Author

b1conrad commented Mar 4, 2022

Looks like the attribute "Id" isn't used in the rule. BUT. It needs to be mentioned so that the compiler will generate the right thing for the Testing tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant