Expected Behavior
WorkflowChecker should consider anonymous functions in local activities non deterministic.
Actual Behavior
WorkflowChecker does not consider anonymous functions in local activities non deterministic.
Steps to Reproduce the Problem
func GreetingSample(ctx workflow.Context) error {
fut := workflow.ExecuteLocalActivity(ctx, func(ctx context.Context) time.Time { return time.Now() })
}
Note
Anonymous functions as local activities are ripe for data races because they can run in parallel with the workflow function, so maybe we should warn about their use from that perspective.
Expected Behavior
WorkflowChecker should consider anonymous functions in local activities non deterministic.
Actual Behavior
WorkflowChecker does not consider anonymous functions in local activities non deterministic.
Steps to Reproduce the Problem
Note
Anonymous functions as local activities are ripe for data races because they can run in parallel with the workflow function, so maybe we should warn about their use from that perspective.