mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-24 03:24:14 +00:00
This removes the device lock that is stored in Redis to avoid Class-A and Class-B / Class-C overlapping. Instead, it consistently sets the scheduler_run_after timestamp, which indicates if the Class-B / Class-C scheduler should consider scheduling downlinks for a particular device. This also updates the get_with_class_b_c_queue_items function to make sure that multiple ChirpStack instances can execute the same query at the same time, without getting the same set of data (as the device records are locked for update and then updated with a scheduler_run_after timestamp in the future).