@@ -108,11 +108,11 @@ func ServeCmd() *cobra.Command {
108
108
system .AddOnRequest (t_api .ReleaseLock , coroutines .ReleaseLock )
109
109
system .AddOnRequest (t_api .ClaimTask , coroutines .ClaimTask )
110
110
system .AddOnRequest (t_api .CompleteTask , coroutines .CompleteTask )
111
- system .AddOnTick (2 , coroutines .EnqueueTasks )
112
- system .AddOnTick (2 , coroutines .TimeoutLocks )
113
- system .AddOnTick (2 , coroutines .SchedulePromises )
114
- system .AddOnTick (2 , coroutines .TimeoutPromises )
115
- system .AddOnTick (1 , coroutines .NotifySubscriptions )
111
+ system .AddOnTick (1000 , coroutines .EnqueueTasks )
112
+ system .AddOnTick (1000 , coroutines .TimeoutLocks )
113
+ system .AddOnTick (1000 , coroutines .SchedulePromises )
114
+ system .AddOnTick (1000 , coroutines .TimeoutPromises )
115
+ system .AddOnTick (1000 , coroutines .NotifySubscriptions )
116
116
117
117
// metrics server
118
118
mux := netHttp .NewServeMux ()
@@ -205,14 +205,15 @@ func ServeCmd() *cobra.Command {
205
205
cmd .Flags ().Int ("aio-store-workers" , 1 , "number of concurrent connections to the store" )
206
206
cmd .Flags ().Int ("aio-store-batch-size" , 100 , "max submissions processed each tick by a store worker" )
207
207
cmd .Flags ().String ("aio-store-sqlite-path" , "resonate.db" , "sqlite database path" )
208
- cmd .Flags ().Duration ("aio-store-sqlite-tx-timeout" , 250 * time .Millisecond , "sqlite transaction timeout" )
208
+ cmd .Flags ().Duration ("aio-store-sqlite-tx-timeout" , 10_000 * time .Millisecond , "sqlite transaction timeout" )
209
209
cmd .Flags ().Bool ("aio-store-sqlite-reset" , false , "sqlite database clean on shutdown" )
210
210
cmd .Flags ().String ("aio-store-postgres-host" , "localhost" , "postgres host" )
211
211
cmd .Flags ().String ("aio-store-postgres-port" , "5432" , "postgres port" )
212
212
cmd .Flags ().String ("aio-store-postgres-username" , "" , "postgres username" )
213
213
cmd .Flags ().String ("aio-store-postgres-password" , "" , "postgres password" )
214
214
cmd .Flags ().String ("aio-store-postgres-database" , "resonate" , "postgres database name" )
215
- cmd .Flags ().Duration ("aio-store-postgres-tx-timeout" , 250 * time .Millisecond , "postgres transaction timeout" )
215
+ cmd .Flags ().StringToString ("aio-store-postgres-query" , make (map [string ]string , 0 ), "postgres query options" )
216
+ cmd .Flags ().Duration ("aio-store-postgres-tx-timeout" , 10_000 * time .Millisecond , "postgres transaction timeout" )
216
217
cmd .Flags ().Bool ("aio-store-postgres-reset" , false , "postgres database clean on shutdown" )
217
218
// Network
218
219
cmd .Flags ().Int ("aio-network-size" , 100 , "size of network submission queue buffered channel" )
@@ -242,6 +243,7 @@ func ServeCmd() *cobra.Command {
242
243
_ = viper .BindPFlag ("aio.subsystems.store.config.postgres.password" , cmd .Flags ().Lookup ("aio-store-postgres-password" ))
243
244
_ = viper .BindPFlag ("aio.subsystems.store.config.postgres.database" , cmd .Flags ().Lookup ("aio-store-postgres-database" ))
244
245
_ = viper .BindPFlag ("aio.subsystems.store.config.postgres.database" , cmd .Flags ().Lookup ("aio-store-postgres-database" ))
246
+ _ = viper .BindPFlag ("aio.subsystems.store.config.postgres.query" , cmd .Flags ().Lookup ("aio-store-postgres-query" ))
245
247
_ = viper .BindPFlag ("aio.subsystems.store.config.postgres.txTimeout" , cmd .Flags ().Lookup ("aio-store-postgres-tx-timeout" ))
246
248
_ = viper .BindPFlag ("aio.subsystems.store.config.postgres.reset" , cmd .Flags ().Lookup ("aio-store-postgres-reset" ))
247
249
// Network
0 commit comments