Skip to content

don't automatically dispatch to a busy session #63

@simonpcouch

Description

@simonpcouch

I just ran into a (simplified) situation where I had 2 R sessions running, both configured with mcp_session() via .Rprofile.

  • Session 1), the first one to be connected with mcp_session(), is running long-running code and has been / will be busy for hours
  • Session 2) is mostly idle

If I explicitly ask to list_r_sessions() and then select 2), the server runs fine. Otherwise, the request is automatically dispatched to 1), where it fails.

Notably, when I list_r_sessions(), 1) doesn't even show up—this makes sense to me and doesn't require any changes—but I think our default session should change from:

  • Before: The lowest-numbered session (or the server itself if there is none), to
  • After: The lowest-numbered session that is actually responsive, e.g. the smallest index that would appear in list_r_session() if called (or the server itself if there is none)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions