force proj sync when collections/requirements.yml

* Similar to roles/requirements.yml sync optimization logic.
This commit is contained in:
chris meyers 2019-07-26 13:10:16 -04:00 committed by AlanCoding
parent 270bd19dbd
commit d785145c59
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -1649,6 +1649,11 @@ class RunJob(BaseTask):
logger.debug('Running project sync for {} because of galaxy role requirements.'.format(job.log_format))
needs_sync = True
galaxy_collections_req_path = os.path.join(project_path, 'collections', 'requirements.yml')
if os.path.exists(galaxy_collections_req_path):
logger.debug('Running project sync for {} because of galaxy collections requirements.'.format(job.log_format))
needs_sync = True
if needs_sync:
pu_ig = job.instance_group
pu_en = job.execution_node