| 105 | == Replication policy == |
| 106 | |
| 107 | An application's '''replication policy''' decides when additional instances |
| 108 | of jobs are needed. |
| 109 | Examples: |
| 110 | * Get at least N finished instances of each job. |
| 111 | * Based on the responses and skill levels of the volunteers who have completed instances, decide whether the error probability is below a given threshold. |
| 112 | |
| 113 | An application's replication policy is embodied in its '''job_finished()''', |
| 114 | a callback function that is called when an instance is finished. |
| 115 | Using the Bossa API, this function can get the set of other instances |
| 116 | and their associated users, |
| 117 | and can decide whether new instances are needed, |
| 118 | and if so, the priority. |