[ARVADOS] updated: 1.3.0-731-gf195fde23

Git user git at public.curoverse.com
Tue Apr 9 17:43:17 UTC 2019


Summary of changes:
 services/api/config/initializers/legacy_jobs_api.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

       via  f195fde23e4b21d99519906be14aa21ae4ef0834 (commit)
      from  63287a6a6153e9e8196922f01ded0321cfc762dd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f195fde23e4b21d99519906be14aa21ae4ef0834
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Tue Apr 9 13:43:00 2019 -0400

    13996: Fix legacy_jobs_api check
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/services/api/config/initializers/legacy_jobs_api.rb b/services/api/config/initializers/legacy_jobs_api.rb
index 8f3b3cb5f..2faf0dac4 100644
--- a/services/api/config/initializers/legacy_jobs_api.rb
+++ b/services/api/config/initializers/legacy_jobs_api.rb
@@ -9,7 +9,11 @@
 require 'enable_jobs_api'
 
 Server::Application.configure do
-  if ActiveRecord::Base.connection.tables.include?('jobs')
-    check_enable_legacy_jobs_api
+  begin
+    if ActiveRecord::Base.connection.tables.include?('jobs')
+      check_enable_legacy_jobs_api
+    end
+  rescue ActiveRecord::NoDatabaseError
+    # Database hasn't been created yet
   end
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list