MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / make_task

Function make_task

nodedb/src/data/executor/core_loop/pressure.rs:210–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 }
209
210 fn make_task() -> ExecutionTask {
211 ExecutionTask::new(Request {
212 request_id: RequestId::new(1),
213 tenant_id: TenantId::new(1),
214 database_id: DatabaseId::DEFAULT,
215 vshard_id: VShardId::new(0),
216 plan: PhysicalPlan::Vector(VectorOp::Insert {
217 collection: "test".into(),
218 vector: vec![0.1],
219 dim: 1,
220 field_name: "emb".into(),
221 surrogate: Surrogate::ZERO,
222 }),
223 deadline: Instant::now() + Duration::from_secs(5),
224 priority: Priority::Normal,
225 trace_id: TraceId::ZERO,
226 consistency: ReadConsistency::Strong,
227 idempotency_key: None,
228 event_source: crate::event::EventSource::User,
229 user_roles: Vec::new(),
230 user_id: None,
231 statement_digest: None,
232 })
233 }
234
235 #[test]
236 fn no_governor_always_allows() {

Calls 1

nowFunction · 0.85