[Rails] Script sometimes sends random data to database?
I use the rufus-scheduler to execute jobs within my Rails application. I
have the following code: http://pastie.org/652937
This is run every ~10 min. The database is mySQL, just in case it
matters.
The data that gets skewed / screwed up is "score_keeper".
As far as I can tell, what I wrote should do this:
At the end of the script, either create a row for today if it doesn't
exist, or update the row for today with the integers that were built up
as the script goes, with a value of 0 or more.
I'll come in the morning sometimes and see that both dictated and
proofread have values of ~144 or more in the database, which makes no
sense because I know there haven't been that many dictated or proofread
since the beginning of the day. Sometimes it's 220. I don't understand
where it gets these values from.
Any ideas?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home