MCPcopy Create free account
hub / github.com/diffgram/diffgram / serialize_for_task

Method serialize_for_task

shared/database/task/job/job.py:663–673  ·  view source on GitHub ↗

serialize Use to send job data in the task context. :return:

(self)

Source from the content-addressed store, hash-verified

661 }
662
663 def serialize_for_task(self):
664 """serialize
665 Use to send job data in the task context.
666 :return:
667 """
668 data = self.serialize_minimal_info()
669 if self.ui_schema:
670 data['ui_schema'] = self.ui_schema.serialize()
671 if self.label_schema:
672 data['label_schema'] = self.label_schema.serialize()
673 return data
674
675 # TODO way too much repeating with these serialize functions let's combine it
676

Callers 1

Calls 2

serializeMethod · 0.45

Tested by

no test coverage detected