Exception thrown in multiprocessing Pool not detected

后端 未结 9 825
灰色年华
灰色年华 2020-11-29 18:44

It seems that when an exception is raised from a multiprocessing.Pool process, there is no stack trace or any other indication that it has failed. Example:

         


        
9条回答
  •  日久生厌
    2020-11-29 19:24

    I'd try using pdb:

    import pdb
    import sys
    def handler(type, value, tb):
      pdb.pm()
    sys.excepthook = handler
    

提交回复
热议问题