@@ -77,6 +77,7 @@ function DebugRunData(props: UseDataFunctionReturn<typeof loader>) {
7777
7878function DebugRunDataEngineV1 ( {
7979 run,
80+ environment,
8081 queueConcurrencyLimit,
8182 queueCurrentConcurrency,
8283 envConcurrencyLimit,
@@ -121,7 +122,7 @@ function DebugRunDataEngineV1({
121122 < Property . Value className = "flex items-center gap-2" >
122123 < ClipboardField
123124 value = { withPrefix (
124- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
125+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
125126 ) }
126127 variant = "tertiary/small"
127128 iconButton
@@ -133,7 +134,7 @@ function DebugRunDataEngineV1({
133134 < Property . Value className = "flex items-center gap-2" >
134135 < ClipboardField
135136 value = { `ZRANGE ${ withPrefix (
136- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
137+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
137138 ) } 0 -1`}
138139 variant = "tertiary/small"
139140 iconButton
@@ -146,7 +147,7 @@ function DebugRunDataEngineV1({
146147 < ClipboardField
147148 value = { withPrefix (
148149 keys . queueCurrentConcurrencyKey (
149- run . runtimeEnvironment ,
150+ environment ,
150151 run . queue ,
151152 run . concurrencyKey ?? undefined
152153 )
@@ -163,7 +164,7 @@ function DebugRunDataEngineV1({
163164 < ClipboardField
164165 value = { `SMEMBERS ${ withPrefix (
165166 keys . queueCurrentConcurrencyKey (
166- run . runtimeEnvironment ,
167+ environment ,
167168 run . queue ,
168169 run . concurrencyKey ?? undefined
169170 )
@@ -185,7 +186,7 @@ function DebugRunDataEngineV1({
185186 < ClipboardField
186187 value = { withPrefix (
187188 keys . queueReserveConcurrencyKeyFromQueue (
188- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
189+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
189190 )
190191 ) }
191192 variant = "tertiary/small"
@@ -200,7 +201,7 @@ function DebugRunDataEngineV1({
200201 < ClipboardField
201202 value = { `SMEMBERS ${ withPrefix (
202203 keys . queueReserveConcurrencyKeyFromQueue (
203- keys . queueKey ( run . runtimeEnvironment , run . queue , run . concurrencyKey ?? undefined )
204+ keys . queueKey ( environment , run . queue , run . concurrencyKey ?? undefined )
204205 )
205206 ) } `}
206207 variant = "tertiary/small"
@@ -218,7 +219,7 @@ function DebugRunDataEngineV1({
218219 < Property . Label > Queue concurrency limit key</ Property . Label >
219220 < Property . Value className = "flex items-center gap-2" >
220221 < ClipboardField
221- value = { withPrefix ( keys . queueConcurrencyLimitKey ( run . runtimeEnvironment , run . queue ) ) }
222+ value = { withPrefix ( keys . queueConcurrencyLimitKey ( environment , run . queue ) ) }
222223 variant = "tertiary/small"
223224 iconButton
224225 />
@@ -228,9 +229,7 @@ function DebugRunDataEngineV1({
228229 < Property . Label > GET queue concurrency limit</ Property . Label >
229230 < Property . Value className = "flex items-center gap-2" >
230231 < ClipboardField
231- value = { `GET ${ withPrefix (
232- keys . queueConcurrencyLimitKey ( run . runtimeEnvironment , run . queue )
233- ) } `}
232+ value = { `GET ${ withPrefix ( keys . queueConcurrencyLimitKey ( environment , run . queue ) ) } ` }
234233 variant = "tertiary/small"
235234 iconButton
236235 />
@@ -246,7 +245,7 @@ function DebugRunDataEngineV1({
246245 < Property . Label > Env current concurrency key</ Property . Label >
247246 < Property . Value className = "flex items-center gap-2" >
248247 < ClipboardField
249- value = { withPrefix ( keys . envCurrentConcurrencyKey ( run . runtimeEnvironment ) ) }
248+ value = { withPrefix ( keys . envCurrentConcurrencyKey ( environment ) ) }
250249 variant = "tertiary/small"
251250 iconButton
252251 />
@@ -256,7 +255,7 @@ function DebugRunDataEngineV1({
256255 < Property . Label > Get env current concurrency</ Property . Label >
257256 < Property . Value className = "flex items-center gap-2" >
258257 < ClipboardField
259- value = { `SMEMBERS ${ withPrefix ( keys . envCurrentConcurrencyKey ( run . runtimeEnvironment ) ) } ` }
258+ value = { `SMEMBERS ${ withPrefix ( keys . envCurrentConcurrencyKey ( environment ) ) } ` }
260259 variant = "tertiary/small"
261260 iconButton
262261 />
@@ -272,7 +271,7 @@ function DebugRunDataEngineV1({
272271 < Property . Label > Env reserve concurrency key</ Property . Label >
273272 < Property . Value className = "flex items-center gap-2" >
274273 < ClipboardField
275- value = { withPrefix ( keys . envReserveConcurrencyKey ( run . runtimeEnvironment . id ) ) }
274+ value = { withPrefix ( keys . envReserveConcurrencyKey ( environment . id ) ) }
276275 variant = "tertiary/small"
277276 iconButton
278277 />
@@ -282,9 +281,7 @@ function DebugRunDataEngineV1({
282281 < Property . Label > Get env reserve concurrency</ Property . Label >
283282 < Property . Value className = "flex items-center gap-2" >
284283 < ClipboardField
285- value = { `SMEMBERS ${ withPrefix (
286- keys . envReserveConcurrencyKey ( run . runtimeEnvironment . id )
287- ) } `}
284+ value = { `SMEMBERS ${ withPrefix ( keys . envReserveConcurrencyKey ( environment . id ) ) } ` }
288285 variant = "tertiary/small"
289286 iconButton
290287 />
@@ -300,7 +297,7 @@ function DebugRunDataEngineV1({
300297 < Property . Label > Env concurrency limit key</ Property . Label >
301298 < Property . Value className = "flex items-center gap-2" >
302299 < ClipboardField
303- value = { withPrefix ( keys . envConcurrencyLimitKey ( run . runtimeEnvironment ) ) }
300+ value = { withPrefix ( keys . envConcurrencyLimitKey ( environment ) ) }
304301 variant = "tertiary/small"
305302 iconButton
306303 />
@@ -310,7 +307,7 @@ function DebugRunDataEngineV1({
310307 < Property . Label > GET env concurrency limit</ Property . Label >
311308 < Property . Value className = "flex items-center gap-2" >
312309 < ClipboardField
313- value = { `GET ${ withPrefix ( keys . envConcurrencyLimitKey ( run . runtimeEnvironment ) ) } ` }
310+ value = { `GET ${ withPrefix ( keys . envConcurrencyLimitKey ( environment ) ) } ` }
314311 variant = "tertiary/small"
315312 iconButton
316313 />
@@ -326,7 +323,7 @@ function DebugRunDataEngineV1({
326323 < Property . Label > Shared queue key</ Property . Label >
327324 < Property . Value className = "flex items-center gap-2" >
328325 < ClipboardField
329- value = { `GET ${ withPrefix ( keys . envSharedQueueKey ( run . runtimeEnvironment ) ) } ` }
326+ value = { `GET ${ withPrefix ( keys . envSharedQueueKey ( environment ) ) } ` }
330327 variant = "tertiary/small"
331328 iconButton
332329 />
@@ -337,7 +334,7 @@ function DebugRunDataEngineV1({
337334 < Property . Value className = "flex items-center gap-2" >
338335 < ClipboardField
339336 value = { `ZRANGEBYSCORE ${ withPrefix (
340- keys . envSharedQueueKey ( run . runtimeEnvironment )
337+ keys . envSharedQueueKey ( environment )
341338 ) } -inf ${ Date . now ( ) } WITHSCORES`}
342339 variant = "tertiary/small"
343340 iconButton
0 commit comments