WorkflowTaskScheduled, Started, Completed loop of 8 seconds

TLDR; your local activity is stuck

You are witnessing workflow task heartbeat in action. If a local activity takes longer than a workflow task timeout the SDK keep completing the workflow task and synchronously starting the new task with 80% of the workflow task timeout interval. In your case the default workflow task timeout is 10 seconds and the task completion happens every 8 seconds. In your case it looks like the local activity takes longer than the workflow task timeout.