@@ -76,6 +76,7 @@ function DebugRunData(props: UseDataFunctionReturn<typeof loader>) {
7676
7777function DebugRunDataEngineV1 ( {
7878 run,
79+ environment,
7980 queueConcurrencyLimit,
8081 queueCurrentConcurrency,
8182 envConcurrencyLimit,
@@ -120,7 +121,7 @@ function DebugRunDataEngineV1({
120121 < Property . Value className = "flex items-center gap-2" >
121122 < ClipboardField
122123 value = { withPrefix (
123- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
124+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
124125 ) }
125126 variant = "tertiary/small"
126127 iconButton
@@ -132,7 +133,7 @@ function DebugRunDataEngineV1({
132133 < Property . Value className = "flex items-center gap-2" >
133134 < ClipboardField
134135 value = { `ZRANGE ${ withPrefix (
135- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
136+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
136137 ) } 0 -1`}
137138 variant = "tertiary/small"
138139 iconButton
@@ -145,7 +146,7 @@ function DebugRunDataEngineV1({
145146 < ClipboardField
146147 value = { withPrefix (
147148 keys . queueCurrentConcurrencyKey (
148- run . runtimeEnvironment ,
149+ environment ,
149150 run . queue ,
150151 run . concurrencyKey ?? undefined
151152 )
@@ -162,7 +163,7 @@ function DebugRunDataEngineV1({
162163 < ClipboardField
163164 value = { `SMEMBERS ${ withPrefix (
164165 keys . queueCurrentConcurrencyKey (
165- run . runtimeEnvironment ,
166+ environment ,
166167 run . queue ,
167168 run . concurrencyKey ?? undefined
168169 )
@@ -184,7 +185,7 @@ function DebugRunDataEngineV1({
184185 < ClipboardField
185186 value = { withPrefix (
186187 keys . queueReserveConcurrencyKeyFromQueue (
187- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
188+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
188189 )
189190 ) }
190191 variant = "tertiary/small"
@@ -199,7 +200,7 @@ function DebugRunDataEngineV1({
199200 < ClipboardField
200201 value = { `SMEMBERS ${ withPrefix (
201202 keys . queueReserveConcurrencyKeyFromQueue (
202- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
203+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
203204 )
204205 ) } `}
205206 variant = "tertiary/small"
@@ -217,7 +218,7 @@ function DebugRunDataEngineV1({
217218 < Property . Label > Queue concurrency limit key</ Property . Label >
218219 < Property . Value className = "flex items-center gap-2" >
219220 < ClipboardField
220- value = { withPrefix ( keys . queueConcurrencyLimitKey ( run . runtimeEnvironment , run . queue ) ) }
221+ value = { withPrefix ( keys . queueConcurrencyLimitKey ( environment , run . queue ) ) }
221222 variant = "tertiary/small"
222223 iconButton
223224 />
@@ -227,9 +228,7 @@ function DebugRunDataEngineV1({
227228 < Property . Label > GET queue concurrency limit</ Property . Label >
228229 < Property . Value className = "flex items-center gap-2" >
229230 < ClipboardField
230- value = { `GET ${ withPrefix (
231- keys . queueConcurrencyLimitKey ( run . runtimeEnvironment , run . queue )
232- ) } `}
231+ value = { `GET ${ withPrefix ( keys . queueConcurrencyLimitKey ( environment , run . queue ) ) } ` }
233232 variant = "tertiary/small"
234233 iconButton
235234 />
@@ -245,7 +244,7 @@ function DebugRunDataEngineV1({
245244 < Property . Label > Env current concurrency key</ Property . Label >
246245 < Property . Value className = "flex items-center gap-2" >
247246 < ClipboardField
248- value = { withPrefix ( keys . envCurrentConcurrencyKey ( run . runtimeEnvironment ) ) }
247+ value = { withPrefix ( keys . envCurrentConcurrencyKey ( environment ) ) }
249248 variant = "tertiary/small"
250249 iconButton
251250 />
@@ -255,7 +254,7 @@ function DebugRunDataEngineV1({
255254 < Property . Label > Get env current concurrency</ Property . Label >
256255 < Property . Value className = "flex items-center gap-2" >
257256 < ClipboardField
258- value = { `SMEMBERS ${ withPrefix ( keys . envCurrentConcurrencyKey ( run . runtimeEnvironment ) ) } ` }
257+ value = { `SMEMBERS ${ withPrefix ( keys . envCurrentConcurrencyKey ( environment ) ) } ` }
259258 variant = "tertiary/small"
260259 iconButton
261260 />
@@ -271,7 +270,7 @@ function DebugRunDataEngineV1({
271270 < Property . Label > Env reserve concurrency key</ Property . Label >
272271 < Property . Value className = "flex items-center gap-2" >
273272 < ClipboardField
274- value = { withPrefix ( keys . envReserveConcurrencyKey ( run . runtimeEnvironment . id ) ) }
273+ value = { withPrefix ( keys . envReserveConcurrencyKey ( environment . id ) ) }
275274 variant = "tertiary/small"
276275 iconButton
277276 />
@@ -281,9 +280,7 @@ function DebugRunDataEngineV1({
281280 < Property . Label > Get env reserve concurrency</ Property . Label >
282281 < Property . Value className = "flex items-center gap-2" >
283282 < ClipboardField
284- value = { `SMEMBERS ${ withPrefix (
285- keys . envReserveConcurrencyKey ( run . runtimeEnvironment . id )
286- ) } `}
283+ value = { `SMEMBERS ${ withPrefix ( keys . envReserveConcurrencyKey ( environment . id ) ) } ` }
287284 variant = "tertiary/small"
288285 iconButton
289286 />
@@ -299,7 +296,7 @@ function DebugRunDataEngineV1({
299296 < Property . Label > Env concurrency limit key</ Property . Label >
300297 < Property . Value className = "flex items-center gap-2" >
301298 < ClipboardField
302- value = { withPrefix ( keys . envConcurrencyLimitKey ( run . runtimeEnvironment ) ) }
299+ value = { withPrefix ( keys . envConcurrencyLimitKey ( environment ) ) }
303300 variant = "tertiary/small"
304301 iconButton
305302 />
@@ -309,7 +306,7 @@ function DebugRunDataEngineV1({
309306 < Property . Label > GET env concurrency limit</ Property . Label >
310307 < Property . Value className = "flex items-center gap-2" >
311308 < ClipboardField
312- value = { `GET ${ withPrefix ( keys . envConcurrencyLimitKey ( run . runtimeEnvironment ) ) } ` }
309+ value = { `GET ${ withPrefix ( keys . envConcurrencyLimitKey ( environment ) ) } ` }
313310 variant = "tertiary/small"
314311 iconButton
315312 />
@@ -325,7 +322,7 @@ function DebugRunDataEngineV1({
325322 < Property . Label > Shared queue key</ Property . Label >
326323 < Property . Value className = "flex items-center gap-2" >
327324 < ClipboardField
328- value = { `GET ${ withPrefix ( keys . envSharedQueueKey ( run . runtimeEnvironment ) ) } ` }
325+ value = { `GET ${ withPrefix ( keys . envSharedQueueKey ( environment ) ) } ` }
329326 variant = "tertiary/small"
330327 iconButton
331328 />
@@ -336,7 +333,7 @@ function DebugRunDataEngineV1({
336333 < Property . Value className = "flex items-center gap-2" >
337334 < ClipboardField
338335 value = { `ZRANGEBYSCORE ${ withPrefix (
339- keys . envSharedQueueKey ( run . runtimeEnvironment )
336+ keys . envSharedQueueKey ( environment )
340337 ) } -inf ${ Date . now ( ) } WITHSCORES`}
341338 variant = "tertiary/small"
342339 iconButton
0 commit comments