Skip to content

[FEATURE] Background Tasks Proposal #2496

Closed
2 of 2 issues completed
Closed

Description

@gautamsirdeshmukh

Problem Statement

Enable agent to dispatch tools/agents-as-tools asynchronously and concurrently in the background without blocking the main event loop

Design

#3531

Implementation

This is a large change that touches a bit of preexisting logic, thereby necessitating an incremental review-and-merge process.

Initial parent PR containing entire implementation: #3632

PR # Contents Link Status
1 Add cancelSignal to ToolContext #3807 Merged
2 Update AfterInvocationEvent to allow multiple event.resume requests #3837 Merged
3 Bring in InProcessTaskEngine #3838 Merged
4 Bring in TaskManager and InProcessTaskManager #3876 Merged
5 Agent integration (internal BackgroundTasks plugin) ... In Draft

Activity

  1. JackYPCOnline commented on Jun 15, 2026

    @JackYPCOnline
    Contributor

    #2740 We should also revisit this PR

  2. pgrayy commented on Jun 15, 2026

    @pgrayy
    Member

    Additional context on #2740, currently, memory utilizes async to implement "fire-and-forget". As with this proposal, it may be worth following a pattern similar to otel where a separate process runs to handle the async requests.

  3. gautamsirdeshmukh commented on Jun 24, 2026

    @gautamsirdeshmukh
    ContributorAuthor

    Adding some relevant context here:

    Conversations are revitalized and ongoing, will update issue accordingly

  4. added theissue type on Jul 10, 2026
  5. gautamsirdeshmukh commented on Jul 14, 2026

    @gautamsirdeshmukh
    ContributorAuthor

    Updates 7/14:

    DONE

    • Deep dive into original proposal(s), competitor frameworks, mechanisms in Strands
    • Rudimentary POC for backgrounding tools/agents-as-tools

    TO DO

    • One more review for mechanism, primarily API bar raising
    • Full implementation
  6. gautamsirdeshmukh commented on Jul 28, 2026

    @gautamsirdeshmukh
    ContributorAuthor

    Updates 7/28:

    DONE

    • Design review (happening today)
    • Full implementation

    TODO

    • Finish, review and merge implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requesttypescriptPull requests that update typescript code

Fields

Language

TypeScript

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions