Skip to content

Commit

Permalink
fix: remove redundant commands from redis script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Dec 5, 2023
1 parent 2879a12 commit e30da84
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 41 deletions.
2 changes: 1 addition & 1 deletion public/v1/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ paths:
- Set the `inProgressUpdates` option to `true` if the application is running in interactive mode so that the user sees the results right away.
- If the application is interactive by default but also implements a "CI" mode to be used in scripts, do not set the flag in the CI mode.
- To use the same probes in different measurements pass id of the first measurement to the `locations` option.
- To use the same probes in different measurements pass id of the initial measurement to the `locations` option.
requestBody:
content:
application/json:
Expand Down
4 changes: 0 additions & 4 deletions src/lib/redis/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ export const recordResult: RecordResultScript = defineScript({
return
end
redis.call('HDEL', 'gp:in-progress', measurementId)
redis.call('DEL', awaitingKey)
redis.call('JSON.SET', key, '$.status', '"finished"')
return redis.call('JSON.GET', key)
`,
transformArguments (measurementId, testId, data) {
Expand Down
Loading

0 comments on commit e30da84

Please sign in to comment.