[ARVADOS] created: 1.1.0-42-g797d521
Git user
git at public.curoverse.com
Thu Nov 2 10:50:00 EDT 2017
at 797d52120825122da27d003772d75c6b8903fa90 (commit)
commit 797d52120825122da27d003772d75c6b8903fa90
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Thu Nov 2 11:48:03 2017 -0300
12533: Do not update the API Client Authorization record to avoid
row contention when lots of jobs are queued with the same token.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>
diff --git a/services/api/app/middlewares/arvados_api_token.rb b/services/api/app/middlewares/arvados_api_token.rb
index b495290..5eb756b 100644
--- a/services/api/app/middlewares/arvados_api_token.rb
+++ b/services/api/app/middlewares/arvados_api_token.rb
@@ -54,11 +54,6 @@ class ArvadosApiToken
Thread.current[:api_client_uuid] = api_client.andand.uuid
Thread.current[:api_client] = api_client
Thread.current[:user] = user
- if api_client_auth
- api_client_auth.last_used_at = Time.now
- api_client_auth.last_used_by_ip_address = remote_ip.to_s
- api_client_auth.save validate: false
- end
@app.call env if @app
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list