@property<EOL><INDENT>def task_identifier(self):<DEDENT>
task_id = self.celery_self.name<EOL>if self.include_args:<EOL><INDENT>merged_args = str(self.args) + str([(k, self.kwargs[k]) for k in sorted(self.kwargs)])<EOL>task_id += '<STR_LIT>'.format(hashlib.md5(merged_args.encode('<STR_LIT:utf-8>')).hexdigest())<EOL><DEDENT>return task_id<EOL>
Return the unique identifier (string) of a task instance.