Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Use cloudpickle when executing Fiber pool in interactive sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
calio committed Jul 8, 2020
1 parent b17769c commit fb4bac5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fiber/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import multiprocessing as mp
import multiprocessing.pool as mp_pool
import multiprocessing.util as mp_util
import pickle
import math
import queue
import random
Expand All @@ -57,6 +56,12 @@
from fiber.process import current_process
import signal


if fiber.util.is_in_interactive_console():
import cloudpickle as pickle
else:
import pickle

logger = logging.getLogger('fiber')

MIN_PORT = 40000
Expand Down

0 comments on commit fb4bac5

Please sign in to comment.