mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix kubernetes runner on py3
instance_id is a string, so this can't be compared to an integer
on python 3. Broken in ac1b25ed4c,
prior to that the comparison was `len(self._galaxy_instance_id) > 0:`
This commit is contained in:
@@ -47,7 +47,7 @@ def produce_unique_k8s_job_name(app_prefix=None, instance_id=None, job_id=None):
|
||||
if app_prefix:
|
||||
job_name += "%s-" % app_prefix
|
||||
|
||||
if instance_id and instance_id > 0:
|
||||
if instance_id and len(instance_id) > 0:
|
||||
job_name += "%s-" % instance_id
|
||||
|
||||
return job_name + job_id
|
||||
|
||||
Reference in New Issue
Block a user