alephcloud / hs-aws-kinesis-client

A producer/consumer client library for Kinesis
http://hackage.haskell.org/package/aws-kinesis-client
Apache License 2.0
5 stars 3 forks source link

[CLI] Add support for timeouts #8

Closed jonsterling closed 9 years ago

jonsterling commented 9 years ago

Currently, the the consumer CLI, you can request to get a certain number of records. As it works presently, the CLI will not terminate until it has got that many records. The requested feature is as follows:

  1. Provide a --timeout n option, such that the CLI will terminate after n seconds, whether or not it has got the requested number of items.
  2. Adjust the semantics of --save-state such that the state is only saved following a successful run.

A successful run is defined differently depending on whether a specific number of records was requested. If --limit was provided, then the run is successful if the app terminated after having got that many records; if --limit was not provided, then the run is automatically considered successful.