added optional task unique field

This commit is contained in:
simon987
2019-01-29 18:16:40 -05:00
parent f250a2180c
commit 64152bfc08
35 changed files with 877 additions and 156 deletions

View File

@@ -15,6 +15,8 @@ func BenchmarkCreateTask(b *testing.B) {
CloneUrl: "http://localhost",
})
worker := genWid()
b.ResetTimer()
for i := 0; i < b.N; i++ {
createTask(api.CreateTaskRequest{
@@ -22,6 +24,6 @@ func BenchmarkCreateTask(b *testing.B) {
Priority: 1,
Recipe: "{}",
MaxRetries: 1,
})
}, worker)
}
}