{"action":"created","issue":{"url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/16","labels_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/16/comments","events_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/16/events","html_url":"https://github.com/thehyve/heim-SmartR/pull/16","id":112803885,"number":16,"title":"R session collecting","user":{"login":"PiotrZakrzewski","id":1050269,"avatar_url":"https://avatars.githubusercontent.com/u/1050269?v=3","gravatar_id":"","url":"https://api.github.com/users/PiotrZakrzewski","html_url":"https://github.com/PiotrZakrzewski","followers_url":"https://api.github.com/users/PiotrZakrzewski/followers","following_url":"https://api.github.com/users/PiotrZakrzewski/following{/other_user}","gists_url":"https://api.github.com/users/PiotrZakrzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrZakrzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrZakrzewski/subscriptions","organizations_url":"https://api.github.com/users/PiotrZakrzewski/orgs","repos_url":"https://api.github.com/users/PiotrZakrzewski/repos","events_url":"https://api.github.com/users/PiotrZakrzewski/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrZakrzewski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-22T13:31:20Z","updated_at":"2015-10-23T09:15:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/16","html_url":"https://github.com/thehyve/heim-SmartR/pull/16","diff_url":"https://github.com/thehyve/heim-SmartR/pull/16.diff","patch_url":"https://github.com/thehyve/heim-SmartR/pull/16.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/comments/150524819","html_url":"https://github.com/thehyve/heim-SmartR/pull/16#issuecomment-150524819","issue_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/16","id":150524819,"user":{"login":"cataphract","id":496394,"avatar_url":"https://avatars.githubusercontent.com/u/496394?v=3","gravatar_id":"","url":"https://api.github.com/users/cataphract","html_url":"https://github.com/cataphract","followers_url":"https://api.github.com/users/cataphract/followers","following_url":"https://api.github.com/users/cataphract/following{/other_user}","gists_url":"https://api.github.com/users/cataphract/gists{/gist_id}","starred_url":"https://api.github.com/users/cataphract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cataphract/subscriptions","organizations_url":"https://api.github.com/users/cataphract/orgs","repos_url":"https://api.github.com/users/cataphract/repos","events_url":"https://api.github.com/users/cataphract/events{/privacy}","received_events_url":"https://api.github.com/users/cataphract/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T09:15:56Z","updated_at":"2015-10-23T09:15:56Z","body":"Generally speaking, the could avoid circular dependencies and duplication of state (with the problems it entails) by keeping a timestamp for each session (for instance in `SessionContext` or in a dedicated `@SmartRSessionScope` bean) that would be updated when a task finishes. The interactions of the garbage collecting bean would just to query the `SessionService` for all sessions and their last modification time (in one new function or two) and `destroySession`."}}