Skip to content

stateSubscription: Send updates independently from 'processed_events_log_update' table#511

Merged
zeeshanakram3 merged 2 commits intoJoystream:masterfrom
Lezek123:hydra-push-subscription-updates
Nov 2, 2022
Merged

stateSubscription: Send updates independently from 'processed_events_log_update' table#511
zeeshanakram3 merged 2 commits intoJoystream:masterfrom
Lezek123:hydra-push-subscription-updates

Conversation

@Lezek123
Copy link
Copy Markdown

@Lezek123 Lezek123 commented Oct 28, 2022

Send updates to stateSubscription independently from processed_events_log_update table updates.
This is achieved by introducing a new api endpoint /update-processor-state in the graphql server, to which (only) the processor can send updates that are then sent from the graphql server to all subscribers.
Processor will send updates to this endpoint (STATE_UPDATE_ENDPOINT) on each ProcessorEvents.PROCESSED_EVENT and ProcessorEvents.STATE_CHANGE.

Can be tested here: Joystream/joystream#4413

…ption handling): send processor

affects: @joystream/hydra-cli, @joystream/hydra-processor
@bedeho
Copy link
Copy Markdown
Member

bedeho commented Oct 28, 2022

Nice work!

…iguration in docker-compose.yml

affects: @joystream/hydra-e2e-tests
Lezek123 pushed a commit to Lezek123/substrate-runtime-joystream that referenced this pull request Oct 28, 2022
Copy link
Copy Markdown
Contributor

@zeeshanakram3 zeeshanakram3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zeeshanakram3 zeeshanakram3 merged commit b51540f into Joystream:master Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants