This Flow is meant to update the labels of Planner tasks based on the due date, eg to label a task as 'within 7-14 days' when that condition arises, and to remove it again when it doesn't (ie as time passes).
The issue is that it runs, and does update tasks, but it just keeps running. The run history shows a duration of often over 20 minutes and status is always 'running'. Power Automate provides this warning:
Your flow's performance may be slow because it's been running more actions than expected since 11/19/2021 1:31:57 AM (1 week ago). Your flow will be turned off if it doesn't use fewer actions. Learn more
Recurrence is set to 1 hour. Filter array filters out completed tasks. The Condition checks a due date had been entered.

It's somewhere here that it gets stuck.
If yes (due date ≠null) it checks the due date of the filtered array to see if it's in a range. I use utcNow(). For example to get 7 days away, I use addDays(utcNow(), 7)

if yes it updates the labels accordingly:

Any advice much appreciated! As I say it does work, but doesn't stop running. Thanks very much in advance