{"action":"created","issue":{"url":"https://api.github.com/repos/DataFire/DataFire/issues/26","repository_url":"https://api.github.com/repos/DataFire/DataFire","labels_url":"https://api.github.com/repos/DataFire/DataFire/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/DataFire/DataFire/issues/26/comments","events_url":"https://api.github.com/repos/DataFire/DataFire/issues/26/events","html_url":"https://github.com/DataFire/DataFire/issues/26","id":236919909,"node_id":"MDU6SXNzdWUyMzY5MTk5MDk=","number":26,"title":"Feature: keeping state across action runs","user":{"login":"bobby-brennan","id":7611973,"node_id":"MDQ6VXNlcjc2MTE5NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/7611973?v=4","gravatar_id":"","url":"https://api.github.com/users/bobby-brennan","html_url":"https://github.com/bobby-brennan","followers_url":"https://api.github.com/users/bobby-brennan/followers","following_url":"https://api.github.com/users/bobby-brennan/following{/other_user}","gists_url":"https://api.github.com/users/bobby-brennan/gists{/gist_id}","starred_url":"https://api.github.com/users/bobby-brennan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobby-brennan/subscriptions","organizations_url":"https://api.github.com/users/bobby-brennan/orgs","repos_url":"https://api.github.com/users/bobby-brennan/repos","events_url":"https://api.github.com/users/bobby-brennan/events{/privacy}","received_events_url":"https://api.github.com/users/bobby-brennan/received_events","type":"User","site_admin":false},"labels":[{"id":476989486,"node_id":"MDU6TGFiZWw0NzY5ODk0ODY=","url":"https://api.github.com/repos/DataFire/DataFire/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-19T14:58:32Z","updated_at":"2018-09-10T09:26:59Z","closed_at":null,"author_association":"COLLABORATOR","body":"We should have a way to maintain state each time an action is run.  For instance, a task might crawl a different page of a result set each time it runs, keeping track of `state.pageNumber`.\r\n\r\nIt would be easy to keep a small amount of state in-memory, but if the process is restarted, we'll often want to pick up where we left off.\r\n\r\nI think `loadState` and `saveState` should be optional, asynchronous functions that can be specified by the user. They can write to a local file, a remote database, an in-memory object, or whatever else. They should be able to be specified once for the project as a whole, and overridden for individual actions (maybe inside `context`?)"},"comment":{"url":"https://api.github.com/repos/DataFire/DataFire/issues/comments/419848363","html_url":"https://github.com/DataFire/DataFire/issues/26#issuecomment-419848363","issue_url":"https://api.github.com/repos/DataFire/DataFire/issues/26","id":419848363,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTg0ODM2Mw==","user":{"login":"danielepolencic","id":1130499,"node_id":"MDQ6VXNlcjExMzA0OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1130499?v=4","gravatar_id":"","url":"https://api.github.com/users/danielepolencic","html_url":"https://github.com/danielepolencic","followers_url":"https://api.github.com/users/danielepolencic/followers","following_url":"https://api.github.com/users/danielepolencic/following{/other_user}","gists_url":"https://api.github.com/users/danielepolencic/gists{/gist_id}","starred_url":"https://api.github.com/users/danielepolencic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielepolencic/subscriptions","organizations_url":"https://api.github.com/users/danielepolencic/orgs","repos_url":"https://api.github.com/users/danielepolencic/repos","events_url":"https://api.github.com/users/danielepolencic/events{/privacy}","received_events_url":"https://api.github.com/users/danielepolencic/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T09:26:59Z","updated_at":"2018-09-10T09:26:59Z","author_association":"NONE","body":"I tried to use Datafire, but the lack of state is challenging. Is there any workaround to maintain state between two invocations?"}}
{"actor":{"display_login":"danielepolencic"}}