Automation system malfunctioned due to Combination of "Scheduled time occurs..." and "Run script"?!

Combination of the trigger “Scheduled time occurs…” and Action “Run script” will malfunction.
Specifically, Script is executed repeatedly (about 10 times) without permission.


Combination of the trigger “Automation is run manually” and Action “Run script” will not cause problems.

Combination of the trigger “Task is overdue” and Action “Run script” will not cause problems.



The three items above are all the same script statement.
The only difference is the trigger.

There seems to be a problem with the settings.

When using “Scheduled time occurs…” without specifying a task, it appears that a “Run script” is generated for each task in the project.

After consulting with Copilot, I was able to get it working correctly.


The key points are:
Scheduled execution
↓
Create a task using Asana standard actions
↓
Script Action
↓
Update the description field with updateTask()


This might be the key point.


It passed the test, so I will leave it running like this for a while.