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

require doesn't trigger deadlock #104

Open
tekumara opened this issue Oct 19, 2024 · 0 comments
Open

require doesn't trigger deadlock #104

tekumara opened this issue Oct 19, 2024 · 0 comments

Comments

@tekumara
Copy link
Contributor

IIUC this should trigger a deadlock, when Human.Input runs a second time, but it doesn't?

---
deadlock_detection: true
action_options:
    Human.Input:
        max_actions: 2
        max_concurrent_actions: 1
---

role Human:
  action Init:
    self.history = []

  action Input:
    input = None
    response = self.history[-1] if self.history else None
    if not response:
      input = ("Human","a")

    require input
    self.history.append(input)
    pass    # ... more happens here ...

action Init:
  h = Human()
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