Skip to content

Commit 72a136f

Browse files
committed
GP-5997 - Adding tag to job submissions that mark them as originating from the GenePattern Python Client
1 parent 69e5bd4 commit 72a136f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def run_job(self, job_spec, wait_until_done=True):
126126

127127
# names should be a list of names,
128128
# values should be a list of **lists** of values
129-
json_string = json.dumps({'lsid': job_spec.lsid, 'params': job_spec.params})
129+
json_string = json.dumps({'lsid': job_spec.lsid, 'params': job_spec.params, 'tags': ['GenePattern Python Client']})
130130
if sys.version_info.major == 3: # Handle conversion to bytes for Python 3
131131
json_string = bytes(json_string, 'utf-8')
132132
request = urllib2.Request(self.url + '/rest/v1/jobs')

0 commit comments

Comments
 (0)