#NEWLINE# @ property #NEWLINE# def calculated_name( self ) : #NEWLINE# #INDENT# 'Returns the name of the worker, under which it is registered to the\n        monitoring system.\n\n        By default, the name of the worker is constructed from the current\n        (short) host name and the current PID.\n        ' #NEWLINE# hostname = socket . gethostname ( ) #NEWLINE# ( shortname , _ , _ ) = hostname . partition ( '.' ) #NEWLINE# name = ( '%s.%s' % ( _ , self . pid ) ) #NEWLINE# return name