{"action":"opened","issue":{"url":"https://api.github.com/repos/lytics/metafora/issues/102","labels_url":"https://api.github.com/repos/lytics/metafora/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/lytics/metafora/issues/102/comments","events_url":"https://api.github.com/repos/lytics/metafora/issues/102/events","html_url":"https://github.com/lytics/metafora/issues/102","id":55659460,"number":102,"title":"Add a new command called Drain : to support releasing all work.","user":{"login":"epsniff","id":2811550,"avatar_url":"https://avatars.githubusercontent.com/u/2811550?v=3","gravatar_id":"","url":"https://api.github.com/users/epsniff","html_url":"https://github.com/epsniff","followers_url":"https://api.github.com/users/epsniff/followers","following_url":"https://api.github.com/users/epsniff/following{/other_user}","gists_url":"https://api.github.com/users/epsniff/gists{/gist_id}","starred_url":"https://api.github.com/users/epsniff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epsniff/subscriptions","organizations_url":"https://api.github.com/users/epsniff/orgs","repos_url":"https://api.github.com/users/epsniff/repos","events_url":"https://api.github.com/users/epsniff/events{/privacy}","received_events_url":"https://api.github.com/users/epsniff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-27T19:00:00Z","updated_at":"2015-01-27T19:00:00Z","closed_at":null,"body":"Ref : https://github.com/GoogleCloudPlatform/kubernetes/issues/3819 \r\n\r\nTo support Kubernetes Lifecycle `PreStop` hook, we are going to add a new command to metafora that `freezes` accepting new tasks and `releases` all current tasks.   The drain command should only return once all work has been released (maybe with a Timeout).   This would allow for k8s to send us a signal to release work, and it wouldn't shutdown the process until the node has released it tasks. "}}