serialize Use to send job data in the task context. :return:
(self)
| 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 |
no test coverage detected