<s> def register_sentry ( client , worker ) : <EOL> """<STR_LIT>""" <EOL> def send_to_sentry ( job , * exc_info ) : <EOL> client . captureException ( <EOL> exc_info = exc_info , <EOL> extra = { <EOL> '<STR_LIT>' : job . id , <EOL> '<STR_LIT>' : job . func , <EOL> '<STR_LIT:args>' : job . args , <EOL> '<STR_LIT>' : job . kwargs , <EOL> '<STR_LIT:description>' : job . description , <EOL> } ) <EOL> worker . push_exc_handler ( send_to_sentry ) </s>
