Skip to content

[Feature Request] Better prevention of accidental Runtime use over forks #1201

@cretz

Description

@cretz

Describe the solution you'd like

Runtimes/clients/workers/etc do not work across forks. We need to do two things here:

  • Prevent creating things with a runtime created in a different process
  • Allow users to opt-out of default runtime use
    • This means add something like Runtime.prevent_default() that will prevent any invocation of Runtime.default()
    • Clients and replayers and test environments use Runtime.default today which lazily creates runtime, but advanced users want to prevent accidentally doing this
    • Runtime.prevent_default() should error if it's called after a default has been created

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions