Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PromptFlow] Move import to the head of the file to avoid package references. #349

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import contextvars
import multiprocessing
import queue
import math
import os
import psutil
from datetime import datetime
from functools import partial
from logging import INFO
Expand Down Expand Up @@ -363,11 +366,6 @@ def create_executor_legacy(*, flow, connections, loaded_tools, cache_manager, st


def get_available_max_worker_count():
import math
import os

import psutil

pid = os.getpid()
mem_info = psutil.virtual_memory()
total_memory = mem_info.total / (1024 * 1024) # in MB
Expand Down