{"action":"opened","issue":{"url":"https://api.github.com/repos/danilop/SampleBatchProcessing/issues/3","repository_url":"https://api.github.com/repos/danilop/SampleBatchProcessing","labels_url":"https://api.github.com/repos/danilop/SampleBatchProcessing/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/danilop/SampleBatchProcessing/issues/3/comments","events_url":"https://api.github.com/repos/danilop/SampleBatchProcessing/issues/3/events","html_url":"https://github.com/danilop/SampleBatchProcessing/issues/3","id":192497270,"number":3,"title":"Alarm sounding before job complete","user":{"login":"Audace","id":3901743,"avatar_url":"https://avatars.githubusercontent.com/u/3901743?v=3","gravatar_id":"","url":"https://api.github.com/users/Audace","html_url":"https://github.com/Audace","followers_url":"https://api.github.com/users/Audace/followers","following_url":"https://api.github.com/users/Audace/following{/other_user}","gists_url":"https://api.github.com/users/Audace/gists{/gist_id}","starred_url":"https://api.github.com/users/Audace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Audace/subscriptions","organizations_url":"https://api.github.com/users/Audace/orgs","repos_url":"https://api.github.com/users/Audace/repos","events_url":"https://api.github.com/users/Audace/events{/privacy}","received_events_url":"https://api.github.com/users/Audace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-30T07:48:08Z","updated_at":"2016-11-30T07:48:08Z","closed_at":null,"body":"I believe this issue is more of a lack of understanding on my part than clarity in the docs. I've configured a batch processing setup similar to this. Here's what has been happening:\r\n\r\n1. Message is sent to the queue.\r\n2. Alarm sounds and starts instance.\r\n3. Get_Jobs.py pulls down the message a t=0.\r\n4. The message changes from \"Messages Available\" to \"Messages In Flight\".\r\n5. Get_Jobs.py begins processing the message.\r\n6. At t=2, the message is still in \"Messages In Flight\" and is currently being processed on the EC2 instance but the alarm sounds and kills the EC2 instance.\r\n\r\nIt looks like the alarm is sounding 2 minutes after the message is no longer available. This would mean any job would need to take less than 2 minutes to complete or it's at risk of being killed by the alarm.\r\n\r\nWhat do I need to change? Ideally, a message is pulled from the queue and added to an instance. That instance isn't killed until two minutes after the message has been deleted, not two minutes after the message is retrieved."}}
{"actor":{"display_login":"Audace"}}