-
Notifications
You must be signed in to change notification settings - Fork 273
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
Call EnsureLegalAccess from EntityFeature in dotnet-isolated #2633
Conversation
Just to make sure I understand, can you provide a concrete example of this?
The closest thing I can think of is when an orchestration is waiting on an external event, in which case it does access the context, but what's another scenario you had in mind where the code doesn't access the context? |
I believe there are cases where a customer could reasonably write an orchestration that never accesses a context. I don't have a concrete example, but I could see an orchestration being written where it examines the input and decides there is no work to be done, returning immediately. I think overall this check is unnecessarily restrictive without much benefit.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor comments, looks good to me.
I added the async check back in, but made a wrapper to |
* udpate readme. * update durability provider class for new core-entities support. (#2570) * update durability provider class for new core-entities support. * add configuration setting for max entity concurrency to DurableTaskOptions * minor fixes. * update DurableClient to take advantage of native entity queries (#2571) * update DurableClient to take advantage of native entity queries if available * fix minor errors. * address PR feedback * implement passthrough middleware for entities (#2572) * implement passthrough middleware for entities. * propagate changes to protocol * update/simplify protobuf format * address PR feedback * implement entity queries for grpc listener (#2573) * implement entity queries for grpc listener * propagate changes to protocol * update/simplify protobuf format * Various fixes (#2585) * durability provider must implement and pass-through IEntityOrchestrationService since it wraps the orchestration service * simple mistake * fix misunderstanding of initializer syntax (produced null, not empty list) * fix missing failure details * fix missing compile-time switch for trigger value type * fix missing optional arguments * fix missing override * simplify how entities are excluded from instance queries (#2586) * add an entity example to the DotNetIsolated smoke test project. (#2584) * add an entity example to the DotNetIsolated smoke test project. * remove superfluous argument. * address PR feedback * Entities: Add worker side entity trigger and logic (#2576) * Add worker side entity trigger and logic * update comments * Address PR comments * another small fix that got lost somewhere. (#2596) * Update packages and version for entities preview (#2599) * Switch to Microsoft.DurableTask.Grpc (#2605) * Fix grpc core (#2616) * pass entity parameters for task orchestration. (#2611) * Core entities/various fixes and updates (#2619) * assign the necessary AzureStorageOrchestrationServiceSettings * propagate changes to query name and metadata parameters * add missing override for TaskOrchestrationEntityFeature * Update to entities preview 2 (#2620) * Add callback handler for entity dispatching (#2624) * Core entities/propagate changes (#2625) * add configuration for EnableEntitySupport * rename includeStateless to includeTransient * Rev dependencies to entities-preview.2 (#2627) * Call EnsureLegalAccess from EntityFeature in dotnet-isolated (#2633) * create a better error message in situations where client entity functions are called on a backend that does not support entities (#2630) * Rev package versions, update release notes (#2638) * Address smoke test build issue (#2647) * fix translation of legacy query to new entity query support (#2648) * fix translation of legacy query to new entity query support * comment out CleanEntityStorage_Many * try to enable CI on feature branch * Revert "comment out CleanEntityStorage_Many" This reverts commit aeaa4b8. * update to preview.2 packages --------- Co-authored-by: Varshitha Bachu <[email protected]> Co-authored-by: Jacob Viau <[email protected]>
Removes a check that asserts the
TaskOrchestrationContext
was accessed. It does not add much value and instead causes issues:TaskOrchestrationContext
, we have to ensure everything is wrapped to make theIsAccessed=true
call. This is cumbersome.Issue describing the changes in this PR
resolves #issue_for_this_pr
Pull request checklist
pending_docs.md
release_notes.md
/src/Worker.Extensions.DurableTask/AssemblyInfo.cs