File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
packages/edge/services/pegboard/src/ops/actor Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,21 @@ pub async fn pegboard_actor_get(ctx: &OperationCtx, input: &Input) -> GlobalResu
115
115
116
116
let actor_data = futures_util:: stream:: iter ( actors_with_wf_ids)
117
117
. map ( |( actor_id, workflow_id) | async move {
118
- let pool = & ctx. sqlite_for_workflow ( workflow_id) . await ?;
118
+ let pool = & match ctx. sqlite_for_workflow ( workflow_id) . await {
119
+ Ok ( x) => x,
120
+ Err ( err)
121
+ if matches ! (
122
+ err. as_workflow_error( ) ,
123
+ Some ( WorkflowError :: WorkflowNotFound )
124
+ ) =>
125
+ {
126
+ // Workflow is complete
127
+ return GlobalResult :: Ok ( None ) ;
128
+ }
129
+ Err ( err) => {
130
+ return GlobalResult :: Err ( err) ;
131
+ }
132
+ } ;
119
133
120
134
let ( actor_row, port_ingress_rows, port_host_rows, port_proxied_rows) = tokio:: try_join!(
121
135
sql_fetch_one!(
You can’t perform that action at this time.
0 commit comments