(domain, strict=False)
return DATA_MIGRATION.enabled(domain) or DomainMigrationProgress.objects.filter(
        domain=domain, migration_status=MigrationStatus.IN_PROGRESS
    ).exists()
Checks if any migrations at all are in progress for the domain

    Returns True if there are any migrations in progress where modifications to
    project forms and cases should be prevented.

    This does not include migrations that are marked as dry runs.
Checks if any migrations at all are in progress for the domain
Checks if any migrations at all are in progress for the domain
def any_migrations_in_progress(domain, strict=False):
    """ Checks if any migrations at all are in progress for the domain

    Returns True if there are any migrations in progress where modifications to
    project forms and cases should be prevented.

    This does not include migrations that are marked as dry runs.
    """
    return DATA_MIGRATION.enabled(domain) or DomainMigrationProgress.objects.filter(
        domain=domain, migration_status=MigrationStatus.IN_PROGRESS
    ).exists()
def any_migrations_in_progress ( domain , strict = False ) : return DATA_MIGRATION . enabled ( domain ) or DomainMigrationProgress . objects . filter ( domain = domain , migration_status = MigrationStatus . IN_PROGRESS ) . exists ( )