This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from uuid import uuid4 | |
import numpy as np | |
from time import sleep | |
LEVEL = 'DEBUG' | |
FILENAME = '123.log' | |
FILEMODE = 'a' | |
FORMAT = '%(asctime)s.%(msecs)03d %(levelname)s:%(name)s:%(message)s' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ray | |
from time import sleep, time | |
import numpy as np | |
import pandas as pd | |
thread_number = 100 | |
pids = list(range(thread_number)) | |
min_wait = 0 | |
max_wait = 100 |