PrioritizedItem

Goals

  1. Handle input of items that we wish to store in memory.

For example, we may not want to persist every video frame to the database, but we do need to pass around the data structure. We can store it in raw_numpy_image

Example

item = PrioritizedItem(
	priority = 100,	    
	input_id = 1)

add_item_to_queue(item)

#lower priority is faster