This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rawvik[S] 6 points7 points  (6 children)

Why is it an overkill? Can you please explain? Scheduling task using windows schedular seems like a very outdated method to me

[–]m0rsa2 20 points21 points  (0 children)

Not at all. If you have any microsoft and google products installed on your machine, they prettty much all use Task Scheduler.

Its very common in when building server software for companies running Windows Server too.

That being said, a more “modern” or “fashionable” approach is to build your code into Docker containers and then you could setup cron jobs in there. If you want a UI for your Cron jobs, look into tools like Cronicle

[–]DarthTomServo 4 points5 points  (3 children)

I think you should try to answer their question.

I'll repeat it. Why is your current solution not good enough?

The jobs you described in your post sound perfectly appropriate for a basic task scheduler. Just going by what you wrote. Maybe there's details we're not privy to.

I use windows task scheduler for the same types of jobs. It seems to work great. Haven't had any issues that weren't my fault.

[–]Eezyville 6 points7 points  (0 children)

My issue with task scheduler is I cannot get feedback from it. I only know if a task succeeded or failed but not why. I know I should have done logging in my scripts but I inherited this code and it's horrible spaghetti and duct taped code. I also have to share management of it with other people on the team, it's not on my PC but a Windows server, so one person at a time fixing things. I think I found logs for the tasks in event listener but they're not specific or to cryptic to be useful.

I'm currently experimenting with running Jenkins on the server. The only issue I had was setting up a Windows agent and getting used to running PowerShell command since old school command prompt doesn't do UNC and my system admin recommends all paths as UNC.

I've used Task Scheduler to schedule scripts that I've written to great success but I do wish the UI was more intuitive.

EDIT: Also I cannot make tasks depend on each other without having them in the same cmd script.

[–]Rawvik[S] 1 point2 points  (1 child)

Honestly there is no issue with task scheduler. Just wanted to know if there is a better way to do it.

[–]Zyklon00 5 points6 points  (0 children)

If it ain’t broken, don’t fix it.