Skip to content

Commit 78c5f9a

Browse files
Merge branch 'dev' into dev
2 parents 5e54547 + 99d4ff4 commit 78c5f9a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

qiita_db/processing_job.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,23 +211,33 @@ def launch_local(env_script, start_script, url, job_id, job_dir):
211211
# As processes are lighter weight than jobs, this should be fine.
212212
# This is how the current job model works locally.
213213
cmd = [start_script, url, job_id, job_dir]
214+
print("ENV_SCRIPT: %s" % env_script)
215+
print("START_SCRIPT: %s" % start_script)
216+
print("URL: %s" % url)
217+
print("JOB ID: %s" % job_id)
218+
print("JOB DIR: %s" % job_dir)
214219

215220
# When Popen() executes, the shell is not in interactive mode,
216221
# so it is not sourcing any of the bash configuration files
217222
# We need to source it so the env_script are available
218223
cmd = "bash -c '%s; %s'" % (env_script, ' '.join(cmd))
224+
print("CMD STRING: %s" % cmd)
219225

220226
# Popen() may also need universal_newlines=True
221227
proc = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
222228

223229
# Communicate pulls all stdout/stderr from the PIPEs
224230
# This call waits until cmd is done
225231
stdout, stderr = proc.communicate()
232+
print("STDOUT: %s" % stdout)
233+
print("STDERR: %s" % stderr)
226234

227235
# proc.returncode will be equal to None if the process hasn't finished
228236
# yet. If cmd was terminated by a SIGNAL, it will be a negative value.
229237
# (*nix platforms only)
230238
error = None
239+
print("RETURN CODE: %s" % proc.returncode)
240+
print("JOB ID: %s" % job_id)
231241

232242
if proc.returncode != 0:
233243
error = "error from launch_local when launching cmd='%s'" % cmd

scripts/qiita-test-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class QiitaConfig(TestCase):
237237
version = tuple(map(int, redbiom_lib_version.split('.')))
238238

239239
self.assertTrue(acceptable_version >= version,
240-
'Unsupported redbiom version. You have %s but the '
240+
'Unsupported redis version. You have %s but the '
241241
'minimum required version is %s'
242242
% ('.'.join(map(str, version)),
243243
string_acceptable_version))

0 commit comments

Comments
 (0)