Network Automation Software
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Waiting For Task to Complete?
Topic Summary: How can I check if a particular task is running?
Created On: 12/17/2017 02:39 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 12/17/2017 02:39 AM
User is offline View Users Profile Print this message

Author Icon
ErikLundstrom
Journeyman (50-99)

Posts: 79
Joined: 09/12/2006

I have tasks that may be triggered and run independently at the same time. However, they write data to the same Excel spreadsheet. It may be the same Task or another Task that is running independently.

I need the current task to wait for any other running task(s) to complete and close the spreadsheet before continuing the current task. How can I check if a particular task is running?  



 Category Survey
AutoMate 9 version: 9.0.5
Windows version: Windows 7
 12/18/2017 02:04 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hello Erik,

I think you may want to setup the task to add a marker, for example creating a temp file. Have other task check for that file, if it exist then don't run. Once the task is done running delete the file.

 Category Survey


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 12/20/2017 02:06 AM
User is offline View Users Profile Print this message

Author Icon
ErikLundstrom
Journeyman (50-99)

Posts: 79
Joined: 09/12/2006

Originally posted by: Ricardo Castaneda Hello Erik, I think you may want to setup the task to add a marker, for example creating a temp file. Have other task check for that file, if it exist then don't run. Once the task is done running delete the file.

There is an Action where I can wait for a process to finsh. I guess that there is no similar Action where I can wait for a named task to finish?

That would be useful to have (consider this a feature request)!

Good idea otherwise to add a marker file. Thanks, I will try that (The new task will have to wait until the marker file is gone before continuing)

 



 Category Survey
AutoMate 9 version: 9.0.5
Windows version: Windows 7
Statistics
18257 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 6686 on 11/01/2020 at 01:24 AM.
There are currently 535 guests browsing this forum, which makes a total of 535 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog