Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support STATE file #3

Open
bfischetti opened this issue May 8, 2019 · 0 comments
Open

Support STATE file #3

bfischetti opened this issue May 8, 2019 · 0 comments
Labels
sub task Sub task related to an issue

Comments

@bfischetti
Copy link
Collaborator

bfischetti commented May 8, 2019

We need to be able to receive a state file as parameter where we will persist the state of the stream periodically.

As specified in the doc:

State
The JSON encoded state is used to persist information between invocations of a Tap.

A Tap that wishes to persist state should periodically write STATE messages to stdout as it processes the stream, and should expect the file named by the --state STATE argument to have the same format as the value of the STATE messages it emits.

A common use case of state is to record the spot in the stream where the last invocation left off. If the Tap is invoked without a --state STATE argument, it should start at the beginning of the stream or at some appropriate default position. If it is invoked with a --state STATE argument it should read in the state file and start from the corresponding position in the stream.

Sub-task of #1

@bfischetti bfischetti added the sub task Sub task related to an issue label May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sub task Sub task related to an issue
Projects
None yet
Development

No branches or pull requests

1 participant