`ExecuteQuery` to support push based job status notifications
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
At the moment, ExecuteQuery submits job, then it goes and pulls data from GetJobStatusParams every predefined number of milliseconds
https://github.com/milenkovicm/datafusion-ballista/blob/debc627353587f523ef2707101d40864699d1a72/ballista/core/src/execution_plans/distributed_query.rs#L369-L370
this does work but puts unnecessary pressure on scheduler, on top of this, minimum query latency is 50ms which is at the moment predefined sleep timeout,
Describe the solution you'd like
Provide additional method, something like ExecuteQueryAndWaitJobCompletion, which would return a stream of GetJobStatusResult which would be push based. We would need to change scheduler task manager to send updates to observers.
Describe alternatives you've considered
An alternative approach would be to change rpc GetJobStatus (GetJobStatusParams) returns (GetJobStatusResult) {} to return stream of GetJobStatusResult.
Additional context
@danielhumanmod would you be interested?
@danielhumanmod would you be interested?
Sorry for the late response. I saw that you're already working on this — I’ll take a look on your PR. Thanks for looping me in!