Ppchelko has uploaded a new change for review. https://gerrit.wikimedia.org/r/285558
Change subject: Set up schema for a continuation topic ...................................................................... Set up schema for a continuation topic Bug: T133221 Change-Id: Ifc73939acb5d6b31eb9969229469fb78574a6571 --- M config/eventbus-topics.yaml A jsonschema/continue/1.yaml 2 files changed, 61 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/event-schemas refs/changes/58/285558/1 diff --git a/config/eventbus-topics.yaml b/config/eventbus-topics.yaml index 6e1b1a3..c47e633 100644 --- a/config/eventbus-topics.yaml +++ b/config/eventbus-topics.yaml @@ -50,4 +50,11 @@ schema_name: retry change-prop.retry.resource_change: + schema_name: retry + +## Continuation topics for backlinks processing in change propagation service +change-prop.backlinks.continue: + schema_name: continue + +change-prop.retry.change-prop.backlinks.continue: schema_name: retry \ No newline at end of file diff --git a/jsonschema/continue/1.yaml b/jsonschema/continue/1.yaml new file mode 100644 index 0000000..a0b07ec --- /dev/null +++ b/jsonschema/continue/1.yaml @@ -0,0 +1,54 @@ +title: Retry +description: Represents a continuation request in batch processing +$schema: http://json-schema.org/draft-04/schema# +type: object +properties: + # global event fields + meta: + type: object + properties: + topic: + type: string + description: the queue topic name this message belongs to + schema_uri: + type: string + description: > + The URI identifying the jsonschema for this event. This may be just + a short uri containing only the name and revision at the end of the + URI path. e.g. schema_name/12345 is acceptable. This field is not + required. + uri: + type: string + format: uri + description: the unique URI identifying the event / resource + request_id: + type: string + pattern: '^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$' + description: the unique UUID v1 ID of the event derived from the X-Request-Id header + id: + type: string + pattern: '^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$' + description: the unique ID of this event; should match the dt field + dt: + type: string + format: date-time + description: the time stamp of the event, in ISO8601 format + domain: + type: string + description: the domain the event pertains to + required: + - topic + - uri + - id + - dt + - domain + # event-specific fields + original_event: + type: object + description: original event that caused a failure + continue: + type: object + description: continuation token +required: + - original_event + - continue -- To view, visit https://gerrit.wikimedia.org/r/285558 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifc73939acb5d6b31eb9969229469fb78574a6571 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/event-schemas Gerrit-Branch: master Gerrit-Owner: Ppchelko <ppche...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits