@@ -6,7 +6,8 @@ use tokio::time::Duration;
66use uuid:: Uuid ;
77
88use crate :: {
9- schema:: { ActivityId , Event } ,
9+ activity:: ActivityId ,
10+ event:: Event ,
1011 util:: { self , Location } ,
1112 Activity , ActivityCtx , ActivityInput , DatabaseHandle , Executable , Listen , PulledWorkflow ,
1213 RegistryHandle , Signal , SignalRow , Workflow , WorkflowError , WorkflowInput , WorkflowResult ,
@@ -365,15 +366,23 @@ impl WorkflowCtx {
365366 }
366367
367368 /// Dispatch another workflow with tags.
368- pub async fn dispatch_tagged_workflow < I > ( & mut self , tags : & serde_json:: Value , input : I ) -> GlobalResult < Uuid >
369+ pub async fn dispatch_tagged_workflow < I > (
370+ & mut self ,
371+ tags : & serde_json:: Value ,
372+ input : I ,
373+ ) -> GlobalResult < Uuid >
369374 where
370375 I : WorkflowInput ,
371376 <I as WorkflowInput >:: Workflow : Workflow < Input = I > ,
372377 {
373378 self . dispatch_workflow_inner ( Some ( tags) , input) . await
374379 }
375380
376- async fn dispatch_workflow_inner < I > ( & mut self , tags : Option < & serde_json:: Value > , input : I ) -> GlobalResult < Uuid >
381+ async fn dispatch_workflow_inner < I > (
382+ & mut self ,
383+ tags : Option < & serde_json:: Value > ,
384+ input : I ,
385+ ) -> GlobalResult < Uuid >
377386 where
378387 I : WorkflowInput ,
379388 <I as WorkflowInput >:: Workflow : Workflow < Input = I > ,
@@ -404,7 +413,7 @@ impl WorkflowCtx {
404413 else {
405414 let name = I :: Workflow :: NAME ;
406415
407- tracing:: debug !( %name, ?tags, ?input, "dispatching workflow" ) ;
416+ tracing:: info !( %name, ?tags, ?input, "dispatching workflow" ) ;
408417
409418 let sub_workflow_id = Uuid :: new_v4 ( ) ;
410419
@@ -659,9 +668,9 @@ impl WorkflowCtx {
659668 workflow_id : Uuid ,
660669 body : T ,
661670 ) -> GlobalResult < Uuid > {
662- tracing:: debug!( name=%T :: NAME , %workflow_id, "dispatching signal" ) ;
663-
664671 let signal_id = Uuid :: new_v4 ( ) ;
672+
673+ tracing:: info!( name=%T :: NAME , %workflow_id, %signal_id, "dispatching signal" ) ;
665674
666675 // Serialize input
667676 let input_val = serde_json:: to_value ( & body)
@@ -682,9 +691,9 @@ impl WorkflowCtx {
682691 tags : & serde_json:: Value ,
683692 body : T ,
684693 ) -> GlobalResult < Uuid > {
685- tracing:: debug!( name=%T :: NAME , ?tags, "dispatching tagged signal" ) ;
686-
687694 let signal_id = Uuid :: new_v4 ( ) ;
695+
696+ tracing:: debug!( name=%T :: NAME , ?tags, %signal_id, "dispatching tagged signal" ) ;
688697
689698 // Serialize input
690699 let input_val = serde_json:: to_value ( & body)
@@ -717,7 +726,7 @@ impl WorkflowCtx {
717726 }
718727 // Listen for new messages
719728 else {
720- tracing:: debug !( name=%self . name, id=%self . workflow_id, "listening for signal" ) ;
729+ tracing:: info !( name=%self . name, id=%self . workflow_id, "listening for signal" ) ;
721730
722731 let mut retries = 0 ;
723732 let mut interval = tokio:: time:: interval ( SIGNAL_RETRY ) ;
0 commit comments