From: Peter Amstutz Date: Mon, 17 Mar 2014 18:12:11 +0000 (-0400) Subject: Added "nondeterministic" column to Jobs table via migration. X-Git-Tag: 1.1.0~2709^2~33^2~2^2^2~16 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/fe4b3736c374e703d53ac3c444da7eb49a54a6d6 Added "nondeterministic" column to Jobs table via migration. Added check for "nondeterministic" field to arv-run-pipeline-instance. --- diff --git a/sdk/cli/bin/arv-run-pipeline-instance b/sdk/cli/bin/arv-run-pipeline-instance index 91d7192c07..d9ebd49bd7 100755 --- a/sdk/cli/bin/arv-run-pipeline-instance +++ b/sdk/cli/bin/arv-run-pipeline-instance @@ -472,7 +472,7 @@ class WhRunPipelineInstance end if candidate_job[:success] - unless @options[:no_reuse_finished] + unless @options[:no_reuse_finished] or c[:nondeterministic] job = candidate_job $stderr.puts "using #{job[:uuid]} (finished at #{job[:finished_at]}) for component #{cname}" c[:job] = job @@ -494,6 +494,7 @@ class WhRunPipelineInstance job = JobCache.create(:script => c[:script], :script_parameters => c[:script_parameters], :runtime_constraints => c[:runtime_constraints] || {}, + :nondeterministic => c[:nondeterministic] || false, :script_version => c[:script_version] || 'master') if job debuglog "component #{cname} new job #{job[:uuid]}" diff --git a/services/api/db/schema.rb b/services/api/db/schema.rb index df6ea9b190..91d9106870 100644 --- a/services/api/db/schema.rb +++ b/services/api/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20140129184311) do +ActiveRecord::Schema.define(:version => 20140317135600) do create_table "api_client_authorizations", :force => true do |t| t.string "api_token", :null => false @@ -70,7 +70,7 @@ ActiveRecord::Schema.define(:version => 20140129184311) do create_table "collections", :force => true do |t| t.string "locator" t.string "owner_uuid" - t.datetime "created_at", :null => false + t.datetime "created_at" t.string "modified_by_client_uuid" t.string "modified_by_user_uuid" t.datetime "modified_at" @@ -80,7 +80,7 @@ ActiveRecord::Schema.define(:version => 20140129184311) do t.string "redundancy_confirmed_by_client_uuid" t.datetime "redundancy_confirmed_at" t.integer "redundancy_confirmed_as" - t.datetime "updated_at", :null => false + t.datetime "updated_at" t.string "uuid" t.text "manifest_text" end @@ -104,8 +104,8 @@ ActiveRecord::Schema.define(:version => 20140129184311) do t.string "repository_name" t.string "sha1" t.string "message" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" end add_index "commits", ["repository_name", "sha1"], :name => "index_commits_on_repository_name_and_sha1", :unique => true @@ -133,8 +133,8 @@ ActiveRecord::Schema.define(:version => 20140129184311) do t.string "modified_by_user_uuid" t.datetime "modified_at" t.text "properties" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" end add_index "humans", ["uuid"], :name => "index_humans_on_uuid", :unique => true @@ -182,13 +182,14 @@ ActiveRecord::Schema.define(:version => 20140129184311) do t.boolean "running" t.boolean "success" t.string "output" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" t.string "priority" t.string "is_locked_by_uuid" t.string "log" t.text "tasks_summary" t.text "runtime_constraints" + t.boolean "nondeterministic" end add_index "jobs", ["created_at"], :name => "index_jobs_on_created_at" @@ -232,7 +233,7 @@ ActiveRecord::Schema.define(:version => 20140129184311) do create_table "links", :force => true do |t| t.string "uuid" t.string "owner_uuid" - t.datetime "created_at", :null => false + t.datetime "created_at" t.string "modified_by_client_uuid" t.string "modified_by_user_uuid" t.datetime "modified_at" @@ -242,7 +243,7 @@ ActiveRecord::Schema.define(:version => 20140129184311) do t.string "name" t.string "head_uuid" t.text "properties" - t.datetime "updated_at", :null => false + t.datetime "updated_at" t.string "head_kind" end @@ -305,7 +306,7 @@ ActiveRecord::Schema.define(:version => 20140129184311) do create_table "pipeline_instances", :force => true do |t| t.string "uuid" t.string "owner_uuid" - t.datetime "created_at", :null => false + t.datetime "created_at" t.string "modified_by_client_uuid" t.string "modified_by_user_uuid" t.datetime "modified_at" @@ -314,7 +315,7 @@ ActiveRecord::Schema.define(:version => 20140129184311) do t.text "components" t.boolean "success" t.boolean "active", :default => false - t.datetime "updated_at", :null => false + t.datetime "updated_at" t.text "properties" end