Skip to content

Allow overriding sandbox execution timeout value for an individual guest function call #193

@danbugs

Description

@danbugs

When creating an UninitializedSandbox, you can specify a maximum execution time for guest functions:

/// The max_execution_time of a guest execution in milliseconds. If set to 0, the max_execution_time
/// will be set to the default value of 1000ms if the guest execution does not complete within the time specified
/// then the execution will be cancelled, the minimum value is 1ms
///
/// Note: this is a C-compatible struct, so even though this optional
/// field should be represented as an `Option`, that type is not
/// FFI-safe, so it cannot be.
///
max_execution_time: u16,

This applies to all guest functions and there is currently no way of changing it after initialization. This issue proposes that we should allow users to override the sandbox default for individual guest function calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/duplicateThis issue is a duplicate of another issue

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions