File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
core/src/worker/workflow/machines
sdk-core-protos/protos/local/temporal/sdk/core/workflow_activation
tests/integ_tests/workflow_tests Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 85
85
#[ derive( Debug , derive_more:: Display ) ]
86
86
pub ( super ) enum NexusOperationCommand {
87
87
#[ display( "Start" ) ]
88
- Start { operation_id : String } ,
88
+ Start { operation_token : String } ,
89
89
#[ display( "StartSync" ) ]
90
90
StartSync ,
91
91
#[ display( "CancelBeforeStart" ) ]
@@ -249,7 +249,7 @@ impl ScheduledEventRecorded {
249
249
sa : NexusOperationStartedEventAttributes ,
250
250
) -> NexusOperationMachineTransition < Started > {
251
251
NexusOperationMachineTransition :: commands ( [ NexusOperationCommand :: Start {
252
- operation_id : sa. operation_id ,
252
+ operation_token : sa. operation_token ,
253
253
} ] )
254
254
}
255
255
}
@@ -478,12 +478,12 @@ impl WFMachinesAdapter for NexusOperationMachine {
478
478
. into( ) ,
479
479
]
480
480
}
481
- NexusOperationCommand :: Start { operation_id } => {
481
+ NexusOperationCommand :: Start { operation_token } => {
482
482
vec ! [
483
483
ResolveNexusOperationStart {
484
484
seq: self . shared_state. lang_seq_num,
485
- status: Some ( resolve_nexus_operation_start:: Status :: OperationId (
486
- operation_id ,
485
+ status: Some ( resolve_nexus_operation_start:: Status :: OperationToken (
486
+ operation_token ,
487
487
) ) ,
488
488
}
489
489
. into( ) ,
Original file line number Diff line number Diff line change @@ -343,10 +343,10 @@ message ResolveNexusOperationStart {
343
343
// Sequence number as provided by lang in the corresponding ScheduleNexusOperation command
344
344
uint32 seq = 1 ;
345
345
oneof status {
346
- // The operation started asynchronously. Contains an ID that can be used to perform
346
+ // The operation started asynchronously. Contains a token that can be used to perform
347
347
// operations on the started operation by, ex, clients. A `ResolveNexusOperation` job will
348
348
// follow at some point.
349
- string operation_id = 2 ;
349
+ string operation_token = 2 ;
350
350
// If true the operation "started" but only because it's also already resolved. A
351
351
// `ResolveNexusOperation` job will be in the same activation.
352
352
bool started_sync = 3 ;
@@ -395,4 +395,4 @@ message RemoveFromCache {
395
395
WORKFLOW_EXECUTION_ENDING = 10 ;
396
396
}
397
397
EvictionReason reason = 2 ;
398
- }
398
+ }
Original file line number Diff line number Diff line change @@ -711,15 +711,15 @@ impl Unblockable for NexusStartResult {
711
711
fn unblock ( ue : UnblockEvent , od : Self :: OtherDat ) -> Self {
712
712
match ue {
713
713
UnblockEvent :: NexusOperationStart ( _, result) => match * result {
714
- resolve_nexus_operation_start:: Status :: OperationId ( op_id ) => {
714
+ resolve_nexus_operation_start:: Status :: OperationToken ( op_token ) => {
715
715
Ok ( StartedNexusOperation {
716
- operation_id : Some ( op_id ) ,
716
+ operation_token : Some ( op_token ) ,
717
717
unblock_dat : od,
718
718
} )
719
719
}
720
720
resolve_nexus_operation_start:: Status :: StartedSync ( _) => {
721
721
Ok ( StartedNexusOperation {
722
- operation_id : None ,
722
+ operation_token : None ,
723
723
unblock_dat : od,
724
724
} )
725
725
}
Original file line number Diff line number Diff line change @@ -866,10 +866,10 @@ impl StartedChildWorkflow {
866
866
}
867
867
868
868
#[ derive( derive_more:: Debug ) ]
869
- #[ debug( "StartedNexusOperation{{ operation_id : {operation_id :?} }}" ) ]
869
+ #[ debug( "StartedNexusOperation{{ operation_token : {operation_token :?} }}" ) ]
870
870
pub struct StartedNexusOperation {
871
- /// The operation id , if the operation started asynchronously
872
- pub operation_id : Option < String > ,
871
+ /// The operation token , if the operation started asynchronously
872
+ pub operation_token : Option < String > ,
873
873
pub ( crate ) unblock_dat : NexusUnblockData ,
874
874
}
875
875
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ async fn nexus_basic(
64
64
} )
65
65
. await
66
66
. unwrap ( ) ;
67
- assert_eq ! ( started. operation_id , None ) ;
67
+ assert_eq ! ( started. operation_token , None ) ;
68
68
let res = started. result ( ) . await ;
69
69
Ok ( res. into ( ) )
70
70
}
You can’t perform that action at this time.
0 commit comments