projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fa988e2
)
use which to find crunch-job instead of hoping sudo preserves PATH
author
Tom Clegg <tom@clinicalfuture.com>
Tue, 25 Jun 2013 02:26:06 +0000
(22:26 -0400)
committer
Tom Clegg <tom@clinicalfuture.com>
Tue, 25 Jun 2013 03:14:55 +0000
(23:14 -0400)
services/api/script/crunch-dispatch.rb
patch
|
blob
|
history
diff --git
a/services/api/script/crunch-dispatch.rb
b/services/api/script/crunch-dispatch.rb
index 24595ac6af8c283a8c10d739fcb12cbaac89aa35..35e03edc5fa28c6cd82469f96e0000217df5fa23 100755
(executable)
--- a/
services/api/script/crunch-dispatch.rb
+++ b/
services/api/script/crunch-dispatch.rb
@@
-81,7
+81,7
@@
class Dispatcher
api_client_id: 0)
job_auth.save
- cmd_args <<
ENV['CRUNCH_JOB_BIN'] || 'crunch-job'
+ cmd_args <<
(ENV['CRUNCH_JOB_BIN'] || `which crunch-job`.strip)
cmd_args << '--job-api-token'
cmd_args << job_auth.api_token
cmd_args << '--job'