Rename function to start_build_batch for further flexibility in the future

This commit is contained in:
Matt Prahl
2016-11-12 21:00:03 -05:00
parent 2cb7ce99c6
commit 67d07023c5
2 changed files with 5 additions and 3 deletions

View File

@@ -107,7 +107,8 @@ def done(config, session, msg):
]
if leftover_components:
module_build_service.utils.start_next_build_batch(
module_build.batch += 1
module_build_service.utils.start_build_batch(
config, module_build, session, builder)
else:
module_build.transition(config, state=models.BUILD_STATES['done'])

View File

@@ -30,6 +30,7 @@ import shutil
import tempfile
import os
import modulemd
import time
from module_build_service import log, models
from module_build_service.errors import ValidationError, UnprocessableEntity
from module_build_service import app, conf, db, log
@@ -58,8 +59,8 @@ def retry(timeout=120, interval=30, wait_on=Exception):
return wrapper
def start_next_build_batch(config, module, session, builder, components=None):
""" Starts a next round of the build cycle for a module. """
def start_build_batch(config, module, session, builder, components=None):
""" Starts a round of the build cycle for a module. """
import koji # Placed here to avoid py2/py3 conflicts...