Repository navigation
Durable tasks: pluggable task store and application-hosted tasks (4.2.0) - #81
Merged
Merged
Conversation
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.
Lets a task outlive the node, for hornbeam's durable executions.
barrel_mcp_task_storebehaviour (task_storeapp env, ETS default). With a durable backend, a task leftworkingon a restarted node becomesfailed("Task interrupted by a restart"); a moderninput_requiredtask resumes throughtasks/update.barrel_mcp_task_providerbehaviour: the application owns id, state, input rounds and cancel. A tool registered withtask_provider => Modulereturns{task, TaskId}.tasks/*andsubscriptions/listenlook in the store first, then ask each provider, so nothing about the id is kept by barrel_mcp.barrel_mcp_tasks:principal/1(restart-stable id for the owner's principal) andchanged/3(status notifications for a hosted task).barrel_mcp:task_owner/1,task_allowed/1,register_task_provider/1.Default store and no provider: behaviour unchanged. Guide:
guides/durable-tasks.md.