Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops
##! @brief 어떤 함수
def some_fn(self, marketl)
# 항상 스트링 변수가 넘어오는줄 알았는데 tuple 타입으로 넘어오는 경우가 발생
if isinstance(market, tuple):
market = market[0]
# som process ~~~~
import multiprocessing as mp
import time
from time import sleep
def foo(q, id):
while q.empty() == False:
print ("%s %s" % (id, q.get()))
for i in range(1, 5):
sleep(0.1)
sleep(0.01)
if __name__ == '__main__':
mp.set_start_method('spawn')
q = mp.Queue()
stime = time.time()
q.put('001')
q.put('002')
q.put('003')
q.put('004')
q.put('005')
q.put('006')
q.put('007')
q.put('008')
q.put('009')
q.put('010')
MAX_PROCESS = 20
p = None
for i in range (0, MAX_PROCESS):
p = mp.Process(target=foo, args=(q, i))
p.start()
for i in range(0, MAX_PROCESS):
p.join()
etime = time.time()
print("%s seconds" % (etime - stime))
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHE_MIDDLEWARE_ALIAS = 'default' # which cache alias to use
CACHE_MIDDLEWARE_SECONDS = 600 # number of seconds to cache a page for (TTL)
CACHE_MIDDLEWARE_KEY_PREFIX = ''
SNMP Version 3 specific -a PROTOCOL set authentication protocol (MD5|SHA) -A PASSPHRASE set authentication protocol pass phrase -e ENGINE-ID set security engine ID (e.g. 800000020109840301) -E ENGINE-ID set context engine ID (e.g. 800000020109840301) -l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv) -n CONTEXT set context name (e.g. bridge1) -u USER-NAME set security name (e.g. bert) -x PROTOCOL set privacy protocol (DES|AES) -X PASSPHRASE set privacy protocol pass phrase -Z BOOTS,TIME set destination engine boots/time