Skip to content

Use a json commit body to include queue metadata #24

@josecelano

Description

@josecelano

As we were discussing here, it would be convenient to allow the queue to add metadata in the commit body. I think this was the final version:

Commit body

NewJobMessage:

{
  "name": "create-job",
  "metadata": {
     "version": 1,
  }
  "payload": "{\"previous_ref\": \"...\",\n     \"current_ref\": \"...\",\n     \"submodule\": \"...\",\n     \"submoudle_url\": \"...\",\n}"
}

StartJobMessage:

{
  "name": "begin-job",
  "metadata": {
     "version": 1,
     "job_number": 1,
     "job_commit": "0fdf0db843a2010702b7c8d2e446966e9302f40e",
  },
  "payload": ""
}

FinishJobMessage:

{
  "name": "finish-job",
  "metadata": {
     "version": 1,
     "job_number": 1,
     "job_commit": "0fdf0db843a2010702b7c8d2e446966e9302f40e",
  },
  "payload": ""
}

@da2ce7 @yeraydavidrodriguez please review this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions