Skip to content

Commit

Permalink
Bump to v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Farcy committed Jul 6, 2016
1 parent 7730a79 commit ea17ec2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.1.1
------

* Support retries in Replay mode

v1.1.0
------

Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ It's up to the developer's responsibility to complete message processing as soon
possible. After 10 seconds (by default), the stop will be forced and a few messages
already received but not processed yet may be lost.

The ```:stop_timeout``` may be fine-tune when passing options to the tracker.
The ```:stop_timeout``` may be fine-tuned when passing options to the tracker.

## Disconnections and Retries

Expand All @@ -93,6 +93,9 @@ backoff retry mechanism when a disconnection happens. The reconnections can be
fine-tuned through the ```:max_retries``` and ```:backoff``` options passed to
the ```track``` call.

Note that the retries counter is reset each time the client manages to receive
a message after a disconnection except in Replay mode (see further).

## Backfill

Backfill is a feature provided by GNIP to avoid losing activities when being
Expand All @@ -112,9 +115,14 @@ object.
Once Replay is activated, you use the stream as previously, starting by
configuring some rules that define which activities you will recover. Once done,
you can track the stream by specifying a timeframe with the ```:from```
and ```:to options```. By default, replay happens over 30 minutes, starting 1
and ```:to``` options. By default, replay happens over 30 minutes, starting 1
hour ago.

Regarding Replay mode and ```:max_retries```, the client does not reset the
retry counter and will never reconnect more than the max number of retries
specified. This specific retry behavior in Replay mode prevents the client from
replaying the same timeframe again and again when GNIP is unstable.

## Errors

All the errors that come from PowerTrack are defined through an ad-hoc exception
Expand Down
2 changes: 1 addition & 1 deletion lib/powertrack/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PowerTrack
VERSION = '1.1.0'
VERSION = '1.1.1'
end

0 comments on commit ea17ec2

Please sign in to comment.