@@ -176,7 +176,7 @@ func (e *InvokerExecuteTaskExecutor) Execute(
176176 ctx ,
177177 schedulerRef ,
178178 (* Scheduler ).recordActionResult ,
179- & schedulerActionResult {Starts : startResults },
179+ & schedulerActionResult {starts : startResults },
180180 )
181181 if err != nil {
182182 return fmt .Errorf ("%w: %w" ,
@@ -317,7 +317,7 @@ func (e *InvokerProcessBufferTaskExecutor) Execute(
317317 executionInfo := scheduler .Schedule .Action .GetStartWorkflow ()
318318 if executionInfo == nil || len (invoker .GetBufferedStarts ()) == 0 {
319319 invoker .recordProcessBufferResult (ctx , & processBufferResult {
320- DiscardStarts : invoker .GetBufferedStarts (),
320+ discardStarts : invoker .GetBufferedStarts (),
321321 })
322322 return nil
323323 }
@@ -327,9 +327,9 @@ func (e *InvokerProcessBufferTaskExecutor) Execute(
327327
328328 // Update Scheduler metadata.
329329 _ , err = scheduler .recordActionResult (ctx , & schedulerActionResult {
330- OverlapSkipped : result .OverlapSkipped ,
331- BufferDropped : result .BufferDropped ,
332- MissedCatchupWindow : result .MissedCatchupWindow ,
330+ overlapSkipped : result .overlapSkipped ,
331+ bufferDropped : result .bufferDropped ,
332+ missedCatchupWindow : result .missedCatchupWindow ,
333333 })
334334 if err != nil {
335335 return err
@@ -373,39 +373,39 @@ func (e *InvokerProcessBufferTaskExecutor) processBuffer(
373373 }
374374
375375 // Update result metrics.
376- result .OverlapSkipped = action .OverlapSkipped
376+ result .overlapSkipped = action .OverlapSkipped
377377
378378 // Add starting workflows to result, trim others.
379379 for _ , start := range readyStarts {
380380 // Ensure we can take more actions. Manual actions are always allowed.
381381 if ! start .Manual && ! scheduler .useScheduledAction (true ) {
382382 // Drop buffered automated actions while paused.
383- result .DiscardStarts = append (result .DiscardStarts , start )
383+ result .discardStarts = append (result .discardStarts , start )
384384 continue
385385 }
386386
387387 if ctx .Now (invoker ).After (e .startWorkflowDeadline (scheduler , start )) {
388388 // Drop expired starts.
389- result .MissedCatchupWindow ++
390- result .DiscardStarts = append (result .DiscardStarts , start )
389+ result .missedCatchupWindow ++
390+ result .discardStarts = append (result .discardStarts , start )
391391 continue
392392 }
393393
394394 // Append for immediate execution.
395395 keepStarts [start .GetRequestId ()] = struct {}{}
396- result .StartWorkflows = append (result .StartWorkflows , start )
396+ result .startWorkflows = append (result .startWorkflows , start )
397397 }
398398
399- result .DiscardStarts = util .FilterSlice (pendingBufferedStarts , func (start * schedulespb.BufferedStart ) bool {
399+ result .discardStarts = util .FilterSlice (pendingBufferedStarts , func (start * schedulespb.BufferedStart ) bool {
400400 _ , keep := keepStarts [start .GetRequestId ()]
401401 return ! keep
402402 })
403403
404404 // Terminate overrides cancel if both are requested.
405405 if action .NeedTerminate {
406- result .TerminateWorkflows = scheduler .GetInfo ().GetRunningWorkflows ()
406+ result .terminateWorkflows = scheduler .GetInfo ().GetRunningWorkflows ()
407407 } else if action .NeedCancel {
408- result .CancelWorkflows = scheduler .GetInfo ().GetRunningWorkflows ()
408+ result .cancelWorkflows = scheduler .GetInfo ().GetRunningWorkflows ()
409409 }
410410
411411 return
0 commit comments