Displaying 4 results from an estimated 4 matches for "finished_at".
2007 Oct 20
0
Proper timestamps in callbacks
Yay, another Task model:
## the model
class Task < ActiveRecord::Base
attr_accessible :lots, :of, :stuff, :but, :not, :finished_at, :and, :finished
before_save do
@before_save.call if @before_save
end
def finish
self.finished = true
@before_save = proc { self.finished_at = Time.now }
end
end
## usage
t = Task.find(some_id)
t.finish
t.save
(same code on pastie: http://pastie.caboo.se/109143)
I''...
2009 Mar 27
1
UTF8 postgres args saving issue
...te that the dump-ed args
are written as a string):
F.\src\backend\utils\mb\wchar.c L1545 Rreport_invalid_encoding: INSERT
INTO "bdrb_job_queues" ("args", "job_key", "taken", "worker_key",
"worker_method", "priority", "finished_at", "tag", "worker_name", "timeout",
"submitted_at", "finished", "runner_info", "submitter_info", "archived_at",
"scheduled_at", "started_at")
VALUES(E''{:car_idi?:inspection_report_name&q...
2006 Nov 18
1
ActiveResource sample code?
I''d like to play around a bit with ActiveResource for consuming a web
service. Does anyone have sample code they would be willing to share?
I''ve googled all around and have come up empty except for simple (non-
working) examples given in the RailsConf keynote and some associated
blog entries.
Thanks!
cr
--~--~---------~--~----~------------~-------~--~----~
You received
2007 Dec 29
0
(unknown)
..., stderr, exit_status, and temporal
statistics
about each job:
jobs = Bj.submit array_of_commands, :priority => 42
...
jobs.each do |job|
if job.finished?
p job.stdout
p job.stderr
p job.exit_status
p job.started_at
p job.finished_at
end
end
In addition the background runner process logs all commands run
and their
exit_status to a log named using the following convention:
rails_root/log/bj.#{ HOSTNAME }.#{ RAILS_ENV }.log
Bj allows you to submit jobs to multiple databases; for instance,
if your...