Closed bholt closed 11 years ago
See Igor::results()
: creates a Sequel::Model out of dataset, allow arbitrary filtering beforehand with block, and then user can interact with the Model at their leisure.
Punting on having "helpers" to show recent jobs--can't figure out a way to support it that doesn't limit functionality of resulting Model instance. Instead, just have user save a custom Model instance with correct filtering returned by results
:
$recent = results{|t| t.order(:run_at).select(:scale, :nnode, :ppn, :max_teps).limit(5)}
"Status" loses track of jobs after they finish. Need a way to query the database to find finished jobs.