Skip to content

Environment cleanup/failover hook #229

@jamesbraza

Description

@jamesbraza

If a rollout is preempted (e.g. exceeds its timeout), it would be nice to let the environment clean itself up, or run some failover hook.

Currently with paper-qa, an on-timeout behavior is hacked into the runner: https://github.com/Future-House/paper-qa/blob/v5.20.0/paperqa/agents/main.py#L171-L178

It would be useful to:

  1. Expose an on-exception hook in Environment
  2. Bake calling this into LDP's runner code

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