Skip to content

Commit 98491e9

Browse files
Charles CowartCharles Cowart
authored andcommitted
Debugging (badly) messages for use w/Travis errors
1 parent 36b3ccc commit 98491e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

qiita_db/processing_job.py

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

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

217223
# Popen() may also need universal_newlines=True
218224
proc = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
219225

220226
# Communicate pulls all stdout/stderr from the PIPEs
221227
# This call waits until cmd is done
222228
stdout, stderr = proc.communicate()
229+
print("STDOUT: %s" % stdout)
230+
print("STDERR: %s" % stderr)
223231

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

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

0 commit comments

Comments
 (0)