task scheduler does not end after job completion
- Posts: 8
- Joined: 14 May 2021
Works fine manually but when used with Task Scheduler, the batch job runs, creates sync.ffs_lock, syncs files successfully, removes the sync.ffs_lock, reports confirms success but the Task does not end in Scheduler and it keeps showing "running". I can force it to end manually and run again which is fine in this case since the lock file was previously removed but if the Task is set to end automatically after some time and the job is not done yet, it will end the task with the sync.ffs_lock still in place so subsequent runs won't go.
- Posts: 8
- Joined: 14 May 2021
ping
- Posts: 4056
- Joined: 11 Jun 2019
Does this actually cause any issues? I have a task that always says running but the task itself runs every day at the correct time without issue. Check task manager and see if FFS is still running, if not, it's fine to leave
- Posts: 4
- Joined: 6 Aug 2021
it most likely ended but windows stupidly doesn't update the screen. hit F5 and see if it changes.
- Posts: 1
- Joined: 17 Nov 2021
Goodness gracious I found the solution to this problem today. I've been experiencing this problem for months. What you need to do is, in Freefilesync, when you save the job as a batch job, make sure you tick "Auto-close" and "ignore errors". It will then ensure your tasks in Windows Scheduler go back to "Ready" once the job has been executed.
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
FreeFileSync will detect and handle this case automatically in the next version:
Current beta: https://www.mediafire.com/file/5x6o49v71gfohgm/FreeFileSync_12.5_%255BBeta%255D_Windows_Setup%25282%2529.exeFreeFileSync 12.5
------------------------------
Automatically adapt batch options to prevent hanging a non-interactive process (Windows)
- Posts: 1
- Joined: 15 Aug 2023
Wooooooow. I can't believe that was it. I am hating that my team chose Windows for their server platform. This should not be a problem in a 2022 version Windows OS.it most likely ended but windows stupidly doesn't update the screen. hit F5 and see if it changes. Hikkupz, 06 Aug 2021, 08:59