[migration-run] run Runs with a remote id

- to update status remotely in postprocess
This commit is contained in:
Prateeksha Singh 2018-07-29 13:52:54 +05:30
parent 158d324b76
commit 0ad04ce02b
2 changed files with 760 additions and 624 deletions

View file

@ -127,7 +127,8 @@ class DataMigrationRun(Document):
# Execute post process
postprocess_method_path = self.get_plan().postprocess_method
frappe.get_attr(postprocess_method_path)({
"status": status
"status": status,
"remote_id": self.remote_id or ''
})
self.db_set(fields, notify=True, commit=True)