diff --git a/bodhi-server/bodhi/server/tasks/check_policies.py b/bodhi-server/bodhi/server/tasks/check_policies.py index d39082fd10..4e8916ad59 100644 --- a/bodhi-server/bodhi/server/tasks/check_policies.py +++ b/bodhi-server/bodhi/server/tasks/check_policies.py @@ -36,6 +36,8 @@ def main(): [models.UpdateStatus.pending, models.UpdateStatus.testing]) ).filter( models.Update.release_id == models.Release.id + ).filter( + models.Update.locked.is_(False) ).filter( models.Release.state.in_([ models.ReleaseState.current, diff --git a/bodhi-server/bodhi/server/tasks/check_signed_builds.py b/bodhi-server/bodhi/server/tasks/check_signed_builds.py index 214e8ec4d1..c173ead333 100644 --- a/bodhi-server/bodhi/server/tasks/check_signed_builds.py +++ b/bodhi-server/bodhi/server/tasks/check_signed_builds.py @@ -45,6 +45,8 @@ def main(): with db_factory() as session: updates = models.Update.query.filter( models.Update.status == models.UpdateStatus.pending + ).filter( + models.Update.locked.is_(False) ).filter( models.Update.release_id == models.Release.id ).filter( diff --git a/news/PR5524.bug b/news/PR5524.bug new file mode 100644 index 0000000000..10efe01388 --- /dev/null +++ b/news/PR5524.bug @@ -0,0 +1 @@ +Exclude locked updates being composed from being modified by cron tasks