MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / class_b_c_scheduler_loop

Function class_b_c_scheduler_loop

chirpstack/src/downlink/scheduler.rs:11–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9use crate::storage::{device, multicast};
10
11pub async fn class_b_c_scheduler_loop() {
12 let conf = config::get();
13
14 loop {
15 trace!("Starting class_b_c_scheduler_loop run");
16
17 if let Err(err) = schedule_device_queue_batch(conf.network.scheduler.batch_size).await {
18 error!(error = %err, "Scheduling device-queue batch failed");
19 } else {
20 trace!("class_b_c_scheduler_loop completed successfully");
21 }
22
23 sleep(conf.network.scheduler.interval).await;
24 }
25}
26
27pub async fn multicast_group_queue_scheduler_loop() {
28 let conf = config::get();

Callers 1

setupFunction · 0.85

Calls 2

getFunction · 0.50

Tested by

no test coverage detected