sqlite3-adapter | Waterline Adapter for SQLite3 | Database library
kandi X-RAY | sqlite3-adapter Summary
kandi X-RAY | sqlite3-adapter Summary
A Waterline adapter for SQLite3.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sqlite3-adapter
sqlite3-adapter Key Features
sqlite3-adapter Examples and Code Snippets
Community Discussions
Trending Discussions on sqlite3-adapter
QUESTION
Steps to replicate:
- Create a new Rails project. (rails 3.2.22.5)
- Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile)
- JRuby 9.1.7.0
- Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb)
- Create an executable war file with jetty webserver. (warble war RAILS_ENV=development)
- Launch the executable. (java -jar mywar.war)
- The scheduler does not run the cron job.
/Gemfile:
...ANSWER
Answered 2017-Feb-09 at 06:14You're saying "it's not scheduling". I guess you've waited until the specified 1815
but nothing happened.
According to your previous question (Why is Rufus scheduling the job twice?) rufus-scheduler is actually scheduling, so what's happening?
Rufus-scheduler 3.3.3 (the one you seem to be using) defaults to using Rails' timezone. This timezone is set in config/application.rb and defaults to UTC.
Could it be that you waited until 1815 local time (not UTC time) and nothing happened?
Try with a schedule like "* * * * *"
(every minute) or "*/5 * * * *"
(0, 5, 10, 15, ... minute).
QUESTION
Steps to replicate:
- Create a new Rails project. (rails 3.2.22.5)
- Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile)
- JRuby 9.1.7.0
- Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb)
- Create an executable war file with jetty webserver. (warble war RAILS_ENV=development)
- Launch the executable. (java -jar mywar.war)
- The scheduler runs the job 2 times.
/Gemfile:
...ANSWER
Answered 2017-Feb-08 at 21:02Rufus-scheduler was scheduling twice because there were 2 Ruby runtimes in my application server. I had to limit to 1 runtime.
Change the pool of Rails runtimes in /config/warble.rb
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sqlite3-adapter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page