Skip to content

: supervision: new enum Unhealthy #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shayne-fletcher
Copy link
Contributor

Summary:

  • introduced new type supervision::Unhealthy
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
  • in PyProcMesh
    • replace:
      • fromArc<Mutex<Option<Option<ProcEvent>>>>
      • to Arc<Mutex<Unhealthy<ProcEvent>>>
  • in PythonActorMesh
    • replace:
      • from: Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>
      • to: Arc<Mutex<Unhealthy<ActorSupervisionEvent>>

Differential Revision: D78498195

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 17, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78498195

shayne-fletcher added a commit to shayne-fletcher/monarch-1 that referenced this pull request Jul 18, 2025
Summary:

- introduced new type `supervision::Unhealthy`
```rust
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
```
- in `PyProcMesh`
  - replace:
    -  from`Arc<Mutex<Option<Option<ProcEvent>>>>` 
    - to `Arc<Mutex<Unhealthy<ProcEvent>>>`
- in `PythonActorMesh`
  - replace:
    - from: `Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>`
    - to: `Arc<Mutex<Unhealthy<ActorSupervisionEvent>>`

Differential Revision: D78498195
shayne-fletcher added a commit to shayne-fletcher/monarch-1 that referenced this pull request Jul 18, 2025
Summary:

- introduced new type `supervision::Unhealthy`
```rust
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
```
- in `PyProcMesh`
  - replace:
    -  from`Arc<Mutex<Option<Option<ProcEvent>>>>` 
    - to `Arc<Mutex<Unhealthy<ProcEvent>>>`
- in `PythonActorMesh`
  - replace:
    - from: `Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>`
    - to: `Arc<Mutex<Unhealthy<ActorSupervisionEvent>>`

Differential Revision: D78498195
shayne-fletcher added a commit to shayne-fletcher/monarch-1 that referenced this pull request Jul 18, 2025
Summary:

- introduced new type `supervision::Unhealthy`
```rust
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
```
- in `PyProcMesh`
  - replace:
    -  from`Arc<Mutex<Option<Option<ProcEvent>>>>` 
    - to `Arc<Mutex<Unhealthy<ProcEvent>>>`
- in `PythonActorMesh`
  - replace:
    - from: `Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>`
    - to: `Arc<Mutex<Unhealthy<ActorSupervisionEvent>>`

Differential Revision: D78498195
shayne-fletcher added a commit to shayne-fletcher/monarch-1 that referenced this pull request Jul 18, 2025
Summary:

- introduced new type `supervision::Unhealthy`
```rust
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
```
- in `PyProcMesh`
  - replace:
    -  from`Arc<Mutex<Option<Option<ProcEvent>>>>` 
    - to `Arc<Mutex<Unhealthy<ProcEvent>>>`
- in `PythonActorMesh`
  - replace:
    - from: `Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>`
    - to: `Arc<Mutex<Unhealthy<ActorSupervisionEvent>>`

Differential Revision: D78498195
shayne-fletcher added a commit to shayne-fletcher/monarch-1 that referenced this pull request Jul 18, 2025
Summary:

- introduced new type `supervision::Unhealthy`
```rust
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
```
- in `PyProcMesh`
  - replace:
    -  from`Arc<Mutex<Option<Option<ProcEvent>>>>` 
    - to `Arc<Mutex<Unhealthy<ProcEvent>>>`
- in `PythonActorMesh`
  - replace:
    - from: `Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>`
    - to: `Arc<Mutex<Unhealthy<ActorSupervisionEvent>>`

Differential Revision: D78498195
shayne-fletcher added a commit to shayne-fletcher/monarch-1 that referenced this pull request Jul 18, 2025
Summary:

- introduced new type `supervision::Unhealthy`
```rust
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
```
- in `PyProcMesh`
  - replace:
    -  from`Arc<Mutex<Option<Option<ProcEvent>>>>` 
    - to `Arc<Mutex<Unhealthy<ProcEvent>>>`
- in `PythonActorMesh`
  - replace:
    - from: `Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>`
    - to: `Arc<Mutex<Unhealthy<ActorSupervisionEvent>>`

Differential Revision: D78498195
Summary:

- introduced new type `supervision::Unhealthy`
```rust
 #[derive(Debug, Clone)]
 pub(crate) enum Unhealthy<Event> {
     SoFarSoGood,    // Still healthy
     StreamClosed,   // Event stream closed
     Crashed(Event), // Bad health event received
 }
```
- in `PyProcMesh`
  - replace:
    -  from`Arc<Mutex<Option<Option<ProcEvent>>>>` 
    - to `Arc<Mutex<Unhealthy<ProcEvent>>>`
- in `PythonActorMesh`
  - replace:
    - from: `Arc<Mutex<Option<Option<ActorSupervisionEvent>>>>`
    - to: `Arc<Mutex<Unhealthy<ActorSupervisionEvent>>`

Differential Revision: D78498195
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78498195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants