mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Merge pull request #8524 from jmchilton/1901_fix_pulsar_version_checking
[19.01] Fix Pulsar version checking logic.
This commit is contained in:
@@ -663,7 +663,9 @@ class PulsarJobRunner(AsynchronousJobRunner):
|
||||
pulsar_version = packaging.version.parse(remote_job_config.get('pulsar_version', "0.6.0"))
|
||||
needed_version = packaging.version.parse("0.0.0")
|
||||
log.info("pulsar_version is %s" % pulsar_version)
|
||||
for feature in list(check_features.keys()) + ['_default_']:
|
||||
for feature, needed in list(check_features.items()) + [('_default_', True)]:
|
||||
if not needed:
|
||||
continue
|
||||
if pulsar_version < MINIMUM_PULSAR_VERSIONS[feature]:
|
||||
needed_version = max(needed_version, MINIMUM_PULSAR_VERSIONS[feature])
|
||||
if pulsar_version < needed_version:
|
||||
|
||||
Reference in New Issue
Block a user