tests/unittests/core/worker/test_producer.py
def opt_out_and_complete(self, num=1):
        """Return None to always opt out and set id_done to True"""
        self._suggested = None
        self.done = True
        print("set")
        return None
Return None to always opt out and set id_done to True
Return None to always opt out and set id_done to True
Return None to always opt out and set id_done to True
def opt_out_and_complete(self, num=1):
        self._suggested = None
        self.done = True
        print("set")
        return None
def opt_out_and_complete ( self , num = 1 ) : self . _suggested = None self . done = True print ( "set" ) return None
Return None to always opt out and set id_done to True
Return None to always opt out and set id_done to True
"""Return None to always opt out and set id_done to True"""
self
num