Merge branch '8484-sanity-check-collection-count' closes #8484
[arvados.git] / services / api / app / models / container.rb
index 48f49164e0452ba786fb5924e9aede3357f4f872..787047df68e877bc8944b3c23186cc400c3ae227 100644 (file)
@@ -25,6 +25,7 @@ class Container < ArvadosModel
     t.add :container_image
     t.add :cwd
     t.add :environment
+    t.add :exit_code
     t.add :finished_at
     t.add :log
     t.add :mounts
@@ -124,7 +125,7 @@ class Container < ArvadosModel
 
     when Complete
       if self.state_changed?
-        permitted.push :state, :finished_at, :output, :log
+        permitted.push :state, :finished_at, :output, :log, :exit_code
       else
         errors.add :state, "cannot update record"
       end