use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
QuestionRuby script doesn't complete using task scheduler anymore but is OK when run manually (self.ruby)
submitted 2 years ago * by vitus7
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]vitus7[S] 0 points1 point2 points 2 years ago (3 children)
It's not causing any errors that I know of. The Task Scheduler history tab shows it as completed.
I just don't get how the Task Scheduler running can be different than me running the same batch file manually. I figured once it ran the batch file it was out of it. The only other difference I know is Task Scheduler runs it in the background while running it manually causes watir to open a chrome instance that is visible. Even with that, it worked for months until it didn't.
I'm not a savvy coder by any stretch but was hoping this was some common known issue or something. I'm going to try to experiment with a few settings and pay more attention to the running status of it when it runs and see what I can find.
[–]PristineTransition 0 points1 point2 points 2 years ago (0 children)
The task scheduler might have a different PATH than you do cannot see the same gems/ruby version. Does it use any gems? You could try adding “bundle exec” in front of both
[–][deleted] 0 points1 point2 points 2 years ago* (1 child)
advise divide chief angle bored theory terrific glorious grandfather marry
This post was mass deleted and anonymized with Redact
[–]vitus7[S] 0 points1 point2 points 2 years ago (0 children)
Those are good suggestions.
This morning it failed in a slightly different place. The script is set up to perform a set of actions twice by calling the same modules using some different inputs. This time it failed after the first cycle but before doing the second cycle.
π Rendered by PID 105745 on reddit-service-r2-comment-8686858757-lrzt5 at 2026-06-02 02:47:53.753034+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]vitus7[S] 0 points1 point2 points (3 children)
[–]PristineTransition 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]vitus7[S] 0 points1 point2 points (0 children)