Azure / azure-functions-durable-js

JavaScript library for using the Durable Functions bindings
https://www.npmjs.com/package/durable-functions
MIT License
129 stars 47 forks source link

Ensure tasks are scheduled only once #517

Closed hossam-nasr closed 1 year ago

hossam-nasr commented 1 year ago

Fixes #485. This PR adds a flag, alreadyScheduled, to DFTask objects. This flag is checked before adding the backing action to the actions array that is sent back to the extension. This ensures that actions are scheduled only once.