mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-13 00:42:14 +00:00
feat(flow): expose task query context for admission checks
Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -369,6 +369,11 @@ impl BatchingTask {
|
||||
self.state.read().unwrap().start_time_millis()
|
||||
}
|
||||
|
||||
/// Returns a stable clone of the task query context without exposing mutable task state.
|
||||
pub fn query_context_snapshot(&self) -> QueryContextRef {
|
||||
self.state.read().unwrap().query_ctx.clone()
|
||||
}
|
||||
|
||||
/// Collect flow-related extensions from the task's query context that should be
|
||||
/// forwarded to the frontend (e.g. scheduled time).
|
||||
fn frontend_extensions(&self) -> HashMap<String, String> {
|
||||
|
||||
Reference in New Issue
Block a user