File tree 3 files changed +20
-3
lines changed
3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def cluster
26
26
end
27
27
28
28
def available_versions
29
- [ '2020' , '2022' , '2023 ']
29
+ [ '2025 ' ]
30
30
end
31
31
32
32
def job_name
Original file line number Diff line number Diff line change @@ -92,11 +92,11 @@ def sftp_host
92
92
end
93
93
94
94
def submit_cluster
95
- ENV [ 'OOD_FRAME_RENDERER_CLUSTER' ] || "owens"
95
+ ENV [ 'OOD_FRAME_RENDERER_CLUSTER' ] || 'cardinal'
96
96
end
97
97
98
98
def cores
99
- ( ENV [ 'OOD_FRAME_RENDERER_CORES' ] || 28 ) . to_i
99
+ ( ENV [ 'OOD_FRAME_RENDERER_CORES' ] || 48 ) . to_i
100
100
end
101
101
102
102
def maya_script_template
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ # When we migrated from Owens to Cardinal, the only version on
4
+ # Cardinal is 2025, so update all the records for the user
5
+ # as whatever version they have in the DB won't work.
6
+ Rails . application . config . after_initialize do
7
+ begin
8
+ Script . all . each do |script |
9
+ if script . is_a? ( MayaScript )
10
+ script . version = '2025' if script . version . to_s < '2025'
11
+ script . save
12
+ end
13
+ end
14
+ rescue
15
+ # nothing to do, no database table exists.
16
+ end
17
+ end
You can’t perform that action at this time.
0 commit comments