NCATSTranslator / workflow-runner

1 stars 1 forks source link

Add `"submitter": "Workflow Runner"` to messages originating from the workflow runner #26

Closed dkoslicki closed 2 years ago

dkoslicki commented 2 years ago

This is helpful for ARAs to know who is calling what. Will help ARAs diagnose issues like https://github.com/RTXteam/RTX/issues/1770 .

Eg.

{
  "message": {
    "query_graph": {
      "edges": {
        "e00": {
          "subject": "n00",
          "object": "n01",
          "predicates": [
            "biolink:physically_interacts_with"
          ]
        }
      },
      "nodes": {
        "n00": {
          "ids": [
            "CHEMBL.COMPOUND:CHEMBL112"
          ]
        },
        "n01": {
          "categories": [
            "biolink:Protein"
          ]
        }
      }
    }
  },
  "submitter": "ARAX GUI",  #<---- here
  "stream_progress": true
}