-
Notifications
You must be signed in to change notification settings - Fork 39
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
Post event stream #363
Post event stream #363
Conversation
to reproduce front end performance issues
as it appears to be much performant with many items looks like w/o much changes, but in case: https://react-select.com/upgrade-guide
- avoid reloading jobs_definition too often - update screen only if paused jobs changed (fixes the popup disappearing while opening it) - force refresh on job action (prevents inconsistent ui / backend states)
as v2 requires much more changes :/ should be better though
at some point it overflows
Also, include Tests in writeClasspath for loop support
to replace eventsource (GET) with poller (POST)
Note that this is based on #362 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 minor comments. General observation : Prefer using const over let in typescript for refs you don't mutate.
timeseries/src/main/scala/com/criteo/cuttle/timeseries/TimeSeriesApp.scala
Outdated
Show resolved
Hide resolved
timeseries/src/main/scala/com/criteo/cuttle/timeseries/TimeSeriesApp.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored couple let into const as suggested. also reintroduced the GET for calendar/focus not to break external clients (internal CuttleDependency
is using this :()
timeseries/src/main/scala/com/criteo/cuttle/timeseries/TimeSeriesApp.scala
Outdated
Show resolved
Hide resolved
timeseries/src/main/scala/com/criteo/cuttle/timeseries/TimeSeriesApp.scala
Outdated
Show resolved
Hide resolved
in order not to break external dependencies on calendar/focus
Cuttle use EventSource, with unfortunately does not support POST / body. Because of that, projects with many jobs selected are breaking on these endpoints, reaching Blaze GET url limit.
This PR integrates a PostEventSource that mimics EventSource through POST polling. It is used to replace EventSource in all cases that can fails because of this GET limit.