Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix time series executions view not updating #562

Merged

Conversation

Lordshinjo
Copy link
Contributor

The time series executions view (when clicking on a specific interval of a specific job in the calendar focus view) queries an url to get the list of executions, and is supposed to use server sent events to auto refresh that list.
However that url would simply serve the first snapshot and never refresh it, due to the snapshot being put in a pure IO after it has been computed.
We just fix that by putting the actual computation of the snapshot in an IO, which will refresh the server sent events properly.

The time series executions view (when clicking on a specific interval of
a specific job in the calendar focus view) queries an url to get the
list of executions, and is supposed to use server sent events to auto
refresh that list.
However that url would simply serve the first snapshot and never refresh
it, due to the snapshot being put in a pure IO after it has been
computed.
We just fix that by putting the actual computation of the snapshot in an
IO, which will refresh the server sent events properly.
@yetanotherion yetanotherion merged commit b5a1a6d into criteo:master Aug 31, 2020
yetanotherion pushed a commit to yetanotherion/cuttle that referenced this pull request Aug 31, 2020
* Fix time series executions view not updating (criteo#562)
* Cron context fixes (criteo#560)
@yetanotherion yetanotherion mentioned this pull request Aug 31, 2020
yetanotherion pushed a commit that referenced this pull request Aug 31, 2020
* Fix time series executions view not updating (#562)
* Cron context fixes (#560)
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.

2 participants