Collections
Collections API
Priorities
1min
collection priorities collections are a great way to run a high volume of requests without coding concurrent requests logic yourself rainforest api allows you to start https //docs trajectdata com/rainforestapi/collections api/collections/start many collections and they will be put into a queued state and executed sequentially by setting a priority to a collection you can determine the order in rainforest api executes your queued collections collections with a higher priority will be executed before those with a lower priority by using this method you can ensure your time critical collections are always executed before your "background", or non time critical collections there are 5 priority levels that can be applied to a collection, they are highest , high , normal , low , lowest the priority of a collection can be set when you create https //docs trajectdata com/rainforestapi/collections api/collections/create or update https //docs trajectdata com/rainforestapi/collections api/collections/update the collection if no priority is specified when the collection is created it will be assigned the normal priority collection priority does not affect the speed that your collections are executed, just the order priorities are evaluated at the point at which the platform is going to start the next collection for example, if you had a collection already running with a normal priority and you started another collection with a high priority, the platform would still complete execution of the already running normal priority collection before starting the newly added high priority collection collection priority cannot be changed once the collection is in the queued or running state, so be sure to set the desired priority before starting https //docs trajectdata com/rainforestapi/collections api/collections/start the collection