Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
microsoft_teams: Don't call processes threads.
PieterCKb1b1c0d3f5d6
diff --git a/zerver/data_import/microsoft_teams.py b/zerver/data_import/microsoft_teams.pyindex 7e73a0b6b0a..f433d52bf92 100644--- a/zerver/data_import/microsoft_teams.py+++ b/zerver/data_import/microsoft_teams.py@@ -580,7 +580,7 @@ def do_convert_directory(microsoft_teams_dir: str,output_dir: str,microsoft_graph_api_token: str,- threads: int = 6,+ processes: int = 6,) -> None:os.makedirs(output_dir, exist_ok=True)if os.listdir(output_dir): # nocoveragediff --git a/zerver/management/commands/convert_microsoft_teams_data.py b/zerver/management/commands/convert_microsoft_teams_data.pyindex f96e7c6ddfc..aeb22956bc1 100644--- a/zerver/management/commands/convert_microsoft_teams_data.py+++ b/zerver/management/commands/convert_microsoft_teams_data.py@@ -34,9 +34,9 @@ class Command(ZulipBaseCommand):)parser.add_argument(- "--threads",+ "--processes",default=settings.DEFAULT_DATA_EXPORT_IMPORT_PARALLELISM,- help="Threads to use in exporting UserMessage objects in parallel",+ help="Processes to use in exporting UserMessage objects in parallel",)parser.formatter_class = argparse.RawTextHelpFormatter@@ -53,8 +53,8 @@ class Command(ZulipBaseCommand):if token is None:raise CommandError("Enter Microsoft Graph API token!")- num_threads = int(options["threads"])- if num_threads < 1:+ num_processes = int(options["processes"])+ if num_processes < 1:raise CommandError("You must have at least one thread.")for path in options["microsoft_teams_data_path"]:@@ -68,7 +68,7 @@ class Command(ZulipBaseCommand):path,output_dir,token,- threads=num_threads,+ processes=num_processes,)elif os.path.isfile(path) and path.endswith(".zip"):raise ValueError(