Repository navigation
Conversation
- WorkOrchestrator transition engine with leases, fencing, StartBy/expiry and retention-based TTL. - IWorkProvider with InMemory and best-effort Redis implementations (Lua CAS scripts, no WAIT). - WorkOutcomeUnknownException for ambiguous provider writes; WorkTransitionErrorCodes on ToResult errors. - Tests for lifecycle, concurrency, ambiguity read-back, TTL, and Redis write-pause timeout. - Async operations design doc; best-effort tracking (fail open) recorded for subscriber phase. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Remove the callback overload of ServiceBusMessageActions.FunctionReceiveAsync and FunctionsServiceBusReceiveArgs. Functions Service Bus triggers now always receive through a CoreEx ServiceBusSubscriberBase (MessageRepresentation.Native for non-CloudEvent payloads) via the subscriber overload, so subscriber-level pipelines apply uniformly. Baggage is configured through EventSubscriberBase.PropagateBaggage. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Wrap subscriber processing with ordered behaviors and notify participants after the final settlement. Track in-process attempts and reset their error metadata on retries. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Adds WebApi.PublishAsync with publish-only default and opt-in tracked publishing via [PublishTracking]/.WithPublishTracking(), MapCoreExOperations status/result/cancel endpoints, idempotency-attempt release for fenced failures, and tracked/untracked OpenAPI metadata. Moves OperationKey/OperationKeyScope to CoreEx.Operations and OperationStatus/OperationError to CoreEx.AspNetCore.Operations. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Add operation-state contracts and the in-memory lifecycle, simplify identities and coordination, and constrain tracked publishing. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Add SQL Server and PostgreSQL operation stores, DbEx migration templates, transaction coverage, and provider documentation. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
Co-authored-by: Copilot App <[email protected]> Signed-off-by: Eric Sibly <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First phase (P0) of the async operations design (
docs/design/async-operations-design.md). Breaking changes to theCoreEx.Hosting.Worksurface are intentional.What's included
WorkOrchestrator: create, start (lease), renew, progress, complete, fail, cancel and fence transitions; StartBy/expiry enforcement; TTL = deadline + retention while running,Retentionfrom finish (extended toStartBy + Retention) once finished.IWorkProvider: independent of the outbox, withInMemoryWorkProviderand a best-effortRedisWorkProvider(Lua compare-and-set scripts;WAITdeliberately removed, so async-replication loss on failover is an accepted, documented risk). Durable tracking needs a different provider.WorkOutcomeUnknownExceptionon writes that time out; the orchestrator reads back to resolve them. Caller cancellation still surfaces asOperationCanceledException.WorkTransitionErrorCodesset onWorkTransitionResult.ToResult()errors.Validation
CLIENT PAUSE ... WRITEtimeout test and a TTL test.Not included
Publishing (
WebApi.PublishAsync), subscriber behaviours and the ASP.NET status endpoints are later phases.