How to run local or docker agent processes backend on a windows system? similar to Supervisor.
02/07/2022, 9:20 PM
I think there is this thing called Windows task scheduler? are you familiar?
02/07/2022, 9:29 PM
Windows task scheduler runs based on schedule. It actually call a windows command and the command could be executed under a specify AD account.
I'm more looking for something like windows service. A typical windows service can start automatically after the windows server started and it can keep running until windows server shutdown. Because I do want the agent process runs like a listener instead of just a scheduled process.
I'm aware of that although I'm exploring running agents on on-premises window servers. We have some windows applications need to run as some steps in a flow.
I have to run these windows applications in shelltasks and use local agent. It seems that docker agent doesn't like windows base images.
02/07/2022, 10:16 PM
You're right, it's made for Linux, for Windows using local agent is probably the best option and your DevOps can probably help you run the agent startup command as a service - do you have someone in your team who can help with that?
02/08/2022, 1:58 PM
Yeah, NSSM could be one of solutions. We'll try several options and let community know
NSSM works! I created a windows service running docker agent. It starts automatically after the server started.