Skip to content

Commit

Permalink
fix python sdk for non-unix (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Moskalenko authored Jul 1, 2020
1 parent 6802533 commit 8e5f32d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/python/feast/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import datetime
import logging
import os
import multiprocessing
import shutil
import tempfile
import time
Expand Down Expand Up @@ -93,7 +94,7 @@

_logger = logging.getLogger(__name__)

CPU_COUNT: int = len(os.sched_getaffinity(0))
CPU_COUNT: int = multiprocessing.cpu_count()

warnings.simplefilter("once", DeprecationWarning)

Expand Down

0 comments on commit 8e5f32d

Please sign in to comment.