mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-03 02:37:48 +08:00
Rename function to start_build_batch for further flexibility in the future
This commit is contained in:
@@ -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'])
|
||||
|
||||
@@ -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...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user