{"action":"created","issue":{"url":"https://api.github.com/repos/cantino/huginn/issues/819","labels_url":"https://api.github.com/repos/cantino/huginn/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/819/comments","events_url":"https://api.github.com/repos/cantino/huginn/issues/819/events","html_url":"https://github.com/cantino/huginn/pull/819","id":74923767,"number":819,"title":"Add AgentRunner and LongRunnable to support long running agents","user":{"login":"dsander","id":20943,"avatar_url":"https://avatars.githubusercontent.com/u/20943?v=3","gravatar_id":"","url":"https://api.github.com/users/dsander","html_url":"https://github.com/dsander","followers_url":"https://api.github.com/users/dsander/followers","following_url":"https://api.github.com/users/dsander/following{/other_user}","gists_url":"https://api.github.com/users/dsander/gists{/gist_id}","starred_url":"https://api.github.com/users/dsander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsander/subscriptions","organizations_url":"https://api.github.com/users/dsander/orgs","repos_url":"https://api.github.com/users/dsander/repos","events_url":"https://api.github.com/users/dsander/events{/privacy}","received_events_url":"https://api.github.com/users/dsander/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cantino/huginn/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":58,"created_at":"2015-05-10T13:45:06Z","updated_at":"2015-10-02T01:27:47Z","closed_at":"2015-09-09T14:36:56Z","pull_request":{"url":"https://api.github.com/repos/cantino/huginn/pulls/819","html_url":"https://github.com/cantino/huginn/pull/819","diff_url":"https://github.com/cantino/huginn/pull/819.diff","patch_url":"https://github.com/cantino/huginn/pull/819.patch"},"body":"This changes HuginnScheduler and TwitterStream to use the new AgentRunner\r\n\r\n~~TwitterStream now uses the `twitter` gem to access the streaming API which removes the `eventmachine` dependency (in production).~~\r\n\r\nI have been working on this for a while now and it finally seems to reach a point where everything is running smoothly (at least in development).\r\n\r\nThe `AgentRunner` is basically an improved `threaded.rb`. It handles failure of workers and reloads them if the configuration changed.\r\n\r\nWhat is still missing is a way for a LongRunning Agents to receive events. This would, for example, allow the XMPP Agent to stay connected to the server.\r\n"},"comment":{"url":"https://api.github.com/repos/cantino/huginn/issues/comments/144895228","html_url":"https://github.com/cantino/huginn/pull/819#issuecomment-144895228","issue_url":"https://api.github.com/repos/cantino/huginn/issues/819","id":144895228,"user":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T01:27:47Z","updated_at":"2015-10-02T01:27:47Z","body":"Seemed like it might be just twitter since I was still seeing scheduled\nevent propagation working? I think twitter is the only long runnable I use.\n\nOn Thursday, October 1, 2015, Dominik Sander <notifications@github.com>\nwrote:\n\n> That sucks, judging from the log It looks like the run_schedule job is\n> hanging somehow. Can you try to use the separate background worker\n> processes to see which of the stops working?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/cantino/huginn/pull/819#issuecomment-144824520>.\n>\n"}}