Skip to content

Commit

Permalink
(maint) Fix bug by removing redis transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-hammes committed Aug 23, 2023
1 parent 8beab7f commit 1c5b066
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/vmpooler/api/v3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,9 @@ def component_to_test(match, labels_string)
def update_user_metrics(operation, vmname)
tracer.in_span("Vmpooler::API::V3.#{__method__}") do |span|
begin
backend.multi
backend.hget("vmpooler__vm__#{vmname}", 'tag:jenkins_build_url')
backend.hget("vmpooler__vm__#{vmname}", 'token:user')
backend.hget("vmpooler__vm__#{vmname}", 'template')
jenkins_build_url, user, poolname = backend.exec
jenkins_build_url = backend.hget("vmpooler__vm__#{vmname}", 'tag:jenkins_build_url')
user = backend.hget("vmpooler__vm__#{vmname}", 'token:user')
poolname = backend.hget("vmpooler__vm__#{vmname}", 'template')
poolname = poolname.gsub('.', '_')

if user
Expand Down

0 comments on commit 1c5b066

Please sign in to comment.