Here's a suggestion:
Mark the time when starting the thread.
Then during the script run, add a time check action and compare the time difference with your desired value.
-> Take appropriate action.
@BAS-Viet-Nam solved brother, thanks.. i need dynamic tools for repeat thread without manual setting directory root folder. thanks for help. very thanks 🙏