Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In the task scheduler, I have created three tasks, which make use of WinSCP. The purpose is to collect a text file from one server and put it to another server.

These three jobs were scheduled to run at 5:00 a.m., so that they would run at the same time.

Questions:

  • Will three jobs trigger at 5:00 a.m?
  • If several tasks are scheduled at the same time, will they start?
  • Can the three jobs extract the same file at the same time?
share|improve this question
1  
I don't see why this wouldn't work...but you may run into locking problems if they're all pinging the same file. It depends, though. Try it? –  Nathan C Jan 7 at 14:13

1 Answer 1

There's no problem running multiple scheduler tasks at the same time.

There's generally no problem reading the same file using multiple parallel processes at the same time. WinSCP definitely does not use exclusive lock when reading local files. Most SFTP/FTP servers won't lock remote file either. But obviously this would be server-specific.

Obviously you need to make sure that your parallel tasks do not write to the same file. WinSCP locks local files for writing, what would break your task. Server behavior for locking writes to remote files is generally undefined (can error, can lose data, whatever).

Anyway, if you talk few files, hence short task, wouldn't it be better to run the three tasks in a sequence (i.e. as a single scheduler task)?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.