Azure / Azure/azure-functions-durable-python
context.signal_entity causes sub orchestrator to never finish.
- Dominant language
- Python
- Stars
- 157
- Forks
- 70
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 2
Description
🐛 **Describe the bug**
Using `context.signal_entity` causes a sub-orchestrator to never finish. That is, it prevents `StopIteration` from being raised.
🤔 **Expected behavior**
Signalling an entity does not cause the generator to fail
☕ **Steps to reproduce**
Create an entity and signal it from within a sub orchestrator. This will cause it to not finish. Now switch it to use `context.call_entity`, which works as expected.
Contributor guide
Research direction
Start by reproducing the minimal entity and sub-orchestrator case described, then compare the context.signal_entity and context.call_entity entry points while tracing how StopIteration completes the generator. Done means signaling the entity no longer prevents the sub-orchestrator from finishing, with regression coverage for the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100