Multiprocessing.Manager with Schedule Job In Python
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 999
- PR merge metrics
- No merged PRs in 30d
Description
i have created a schedule job to run everyday and call Function, this Function contains multiprocessing with multiprocessing.Manager().
once the debugging reach multiprocessing.Manager() part the debugging disappear.
**The Code:**
`def job():
if __name__ == '__main__':
Processes=[]
manager= multiprocessing.Manager()
returned_resp = manager.dict()
for i in range(0,10):
proc = multiprocessing.Process(target=Test, args=(i,returned_resp))
Processes.append(proc)
for proc in Processes:
proc.start()
for proc in Processes:
proc.join()
def Test(i,returned_resp):
returned_resp[i] = i*10
schedule.every(10).seconds.do(job)
while True:
schedule.run_pending()
time.sleep(1)`
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue provides no repository file or test. Start by reproducing the shown schedule.run_pending loop with Python's multiprocessing.Manager(), then clarify the observed failure and whether the expected outcome is a code fix or usage guidance before defining done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100