setup: Drop check for already running operation

- Currently operations manager already ensures that all operations run serially.
Even in future, operations manager is unlikely to run parallel operations on a
single app.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-08-18 22:05:10 -07:00 committed by James Valleroy
parent 97f45ee2bf
commit 22fef4d521
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -30,10 +30,6 @@ _force_upgrader = None
def run_setup_on_app(app_id, allow_install=True):
"""Execute the setup process in a thread."""
# Setup for the module is already running
if operation_module.manager.filter(app_id):
return
# App is already up-to-date
app = app_module.App.get(app_id)
current_version = app.get_setup_version()