Skip to content

Commit

Permalink
Make PendingChildWorkflow and StartedChildWorkflow public (#644)
Browse files Browse the repository at this point in the history
Co-authored-by: Spencer Judge <[email protected]>
  • Loading branch information
c-thiel and Sushisource authored Nov 28, 2023
1 parent e4d4400 commit 5e2f8bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 3 additions & 5 deletions sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ pub use activity_context::ActContext;
pub use temporal_client::Namespace;
pub use workflow_context::{
ActivityOptions, CancellableFuture, ChildWorkflow, ChildWorkflowOptions, LocalActivityOptions,
Signal, SignalData, SignalWorkflowOptions, WfContext,
PendingChildWorkflow, Signal, SignalData, SignalWorkflowOptions, StartedChildWorkflow,
WfContext,
};

use crate::{
interceptors::WorkerInterceptor,
workflow_context::{ChildWfCommon, PendingChildWorkflow},
};
use crate::{interceptors::WorkerInterceptor, workflow_context::ChildWfCommon};
use anyhow::{anyhow, bail, Context};
use app_data::AppData;
use futures::{future::BoxFuture, FutureExt, StreamExt, TryFutureExt, TryStreamExt};
Expand Down
6 changes: 5 additions & 1 deletion sdk/src/workflow_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,11 @@ pub struct ChildWfCommon {
result_future: CancellableWFCommandFut<ChildWorkflowResult, ()>,
}

/// Child workflow in pending state
pub struct PendingChildWorkflow {
/// The status of the child workflow start
pub status: ChildWorkflowStartStatus,
pub common: ChildWfCommon,
pub(crate) common: ChildWfCommon,
}

impl PendingChildWorkflow {
Expand All @@ -654,7 +656,9 @@ impl PendingChildWorkflow {
}
}

/// Child workflow in started state
pub struct StartedChildWorkflow {
/// Run ID of the child workflow
pub run_id: String,
common: ChildWfCommon,
}
Expand Down

0 comments on commit 5e2f8bd

Please sign in to comment.