Skip to content

Commit deec018

Browse files
committed
Add emergency flag
1 parent ba8ae86 commit deec018

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

core/src/worker/workflow/history_update.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,11 @@ fn find_end_index_of_next_wft_seq(
718718
return NextWFTSeqEndIndex::Complete(last_index);
719719
}
720720

721+
// TODO: Emergency undo for boundary calculation change. Remove if no problems after a bit.
722+
if std::env::var("TEMPORAL_NO_WFT_BOUNDARY_CHANGE").is_ok() {
723+
saw_command = false;
724+
}
725+
721726
if e.event_type() == EventType::WorkflowTaskStarted {
722727
wft_started_event_id_to_index.push((e.event_id, ix));
723728
if let Some(next_event) = events.get(ix + 1) {

0 commit comments

Comments
 (0)