{"action":"created","issue":{"url":"https://api.github.com/repos/Kitware/Remus/issues/234","labels_url":"https://api.github.com/repos/Kitware/Remus/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/Kitware/Remus/issues/234/comments","events_url":"https://api.github.com/repos/Kitware/Remus/issues/234/events","html_url":"https://github.com/Kitware/Remus/issues/234","id":66209787,"number":234,"title":"Ability to change workers timeout.","user":{"login":"robertmaynard","id":215756,"avatar_url":"https://avatars.githubusercontent.com/u/215756?v=3","gravatar_id":"","url":"https://api.github.com/users/robertmaynard","html_url":"https://github.com/robertmaynard","followers_url":"https://api.github.com/users/robertmaynard/followers","following_url":"https://api.github.com/users/robertmaynard/following{/other_user}","gists_url":"https://api.github.com/users/robertmaynard/gists{/gist_id}","starred_url":"https://api.github.com/users/robertmaynard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertmaynard/subscriptions","organizations_url":"https://api.github.com/users/robertmaynard/orgs","repos_url":"https://api.github.com/users/robertmaynard/repos","events_url":"https://api.github.com/users/robertmaynard/events{/privacy}","received_events_url":"https://api.github.com/users/robertmaynard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kitware/Remus/labels/critical","name":"critical","color":"e11d21"},{"url":"https://api.github.com/repos/Kitware/Remus/labels/easy%20tasks","name":"easy tasks","color":"5319e7"},{"url":"https://api.github.com/repos/Kitware/Remus/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Kitware/Remus/labels/Usability","name":"Usability","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-03T19:05:51Z","updated_at":"2015-04-06T19:20:27Z","closed_at":null,"body":"Currently each worker heartbeat is hardcoded to have a floor of 250ms and ceiling of 1 minute. This doesn't work well for applications as they might want to enforce quicker detection of crashed workers than every minute.\r\n\r\nWhat we should do is extend ```remus::worker::Worker``` to be more like ```remus::server::Server``` so that people can determine better heart-beat controls for the worker. Something like the following should suffice:\r\n\r\n```\r\nremus::worker::ServerConnection conn = remus::worker::make_ServerConnection(ports.worker().endpoint());\r\n\r\nremus::common::MeshIOType io_type = remus::common::make_MeshIOType(Mesh2D(),Mesh3D());\r\nremus::proto::JobRequirements requirements = make_JobRequirements(io_type, \"SimpleWorker\", \"\");\r\nremus::Worker w(requirements,conn);\r\n\r\nw->setHeartbeatRates( remus::worker::HeartbeatRates(50,150) );\r\n\r\nremus::worker::Job wjob = worker->getJob();\r\n...\r\n\r\n```\r\n\r\nThis would construct a worker and state it should heartbeat no faster than every 50msec, and no slower than every 150msec. If the worker doesn't heartbeat every 150msec the server will presume it to be dead."},"comment":{"url":"https://api.github.com/repos/Kitware/Remus/issues/comments/90204463","html_url":"https://github.com/Kitware/Remus/issues/234#issuecomment-90204463","issue_url":"https://api.github.com/repos/Kitware/Remus/issues/234","id":90204463,"user":{"login":"robertmaynard","id":215756,"avatar_url":"https://avatars.githubusercontent.com/u/215756?v=3","gravatar_id":"","url":"https://api.github.com/users/robertmaynard","html_url":"https://github.com/robertmaynard","followers_url":"https://api.github.com/users/robertmaynard/followers","following_url":"https://api.github.com/users/robertmaynard/following{/other_user}","gists_url":"https://api.github.com/users/robertmaynard/gists{/gist_id}","starred_url":"https://api.github.com/users/robertmaynard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertmaynard/subscriptions","organizations_url":"https://api.github.com/users/robertmaynard/orgs","repos_url":"https://api.github.com/users/robertmaynard/repos","events_url":"https://api.github.com/users/robertmaynard/events{/privacy}","received_events_url":"https://api.github.com/users/robertmaynard/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T19:20:27Z","updated_at":"2015-04-06T19:20:27Z","body":"Fixed by PR #235 "}}