hello guys, I want to know that Live query and Sch...
# core
y
hello guys, I want to know that Live query and Schedule query do they maintiain different queue and does LIVE query have more priority than SCHEDULE query ? and if yes then if any live query come does SCHEDULE query get preempted or it is like that SCHEDULE query will execute but for next query, osquery will Prioritize LIVE query over SCHEDULE query
s
I don’t think there’s really a queue, per se. There is a single thread that is executing scheduled queries. There is a single thread executing distributed queries. I think they can happen at the same time
☝️ 1
y
So I can consider this as if I am using distributed queries then that means I should not bother about the schedule query that will not disturb my execution as the schedule query is running in different queues and distributed queries are running in different queues, as you told me that there is no queue so what is the data structures osquery use like how it knows that this query come first like that or how it takes dicission to what query to respond first ?
I am really interested in osquery internals !