
The sync_priority key on files store a Number that defines a level of priority for that file. A file with a higher sync_priority will always be processed before other files with lower priority numbers. An exception is if the file caused an error, then the other files not yet processed are taken first.
{
"_id": "/filepath",
"sync_priority": 1
}
If the sync_priority key is not set on a file, it is considered as having a default normal priority (0).
You can specify the priority number for a file at publish time:
damas.publish({ "_id": "/filepath", "origin": "site_a", "sync_priority": 2 });
See the publish method in the API reference for more information.