{"action":"opened","issue":{"url":"https://api.github.com/repos/vatlab/SOS/issues/472","repository_url":"https://api.github.com/repos/vatlab/SOS","labels_url":"https://api.github.com/repos/vatlab/SOS/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/vatlab/SOS/issues/472/comments","events_url":"https://api.github.com/repos/vatlab/SOS/issues/472/events","html_url":"https://github.com/vatlab/SOS/issues/472","id":211569898,"number":472,"title":"host files for each task file.","user":{"login":"BoPeng","id":9889312,"avatar_url":"https://avatars2.githubusercontent.com/u/9889312?v=3","gravatar_id":"","url":"https://api.github.com/users/BoPeng","html_url":"https://github.com/BoPeng","followers_url":"https://api.github.com/users/BoPeng/followers","following_url":"https://api.github.com/users/BoPeng/following{/other_user}","gists_url":"https://api.github.com/users/BoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/BoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoPeng/subscriptions","organizations_url":"https://api.github.com/users/BoPeng/orgs","repos_url":"https://api.github.com/users/BoPeng/repos","events_url":"https://api.github.com/users/BoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/BoPeng/received_events","type":"User","site_admin":false},"labels":[{"id":325435541,"url":"https://api.github.com/repos/vatlab/SOS/labels/discussion","name":"discussion","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":{"login":"BoPeng","id":9889312,"avatar_url":"https://avatars2.githubusercontent.com/u/9889312?v=3","gravatar_id":"","url":"https://api.github.com/users/BoPeng","html_url":"https://github.com/BoPeng","followers_url":"https://api.github.com/users/BoPeng/followers","following_url":"https://api.github.com/users/BoPeng/following{/other_user}","gists_url":"https://api.github.com/users/BoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/BoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoPeng/subscriptions","organizations_url":"https://api.github.com/users/BoPeng/orgs","repos_url":"https://api.github.com/users/BoPeng/repos","events_url":"https://api.github.com/users/BoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/BoPeng/received_events","type":"User","site_admin":false},"assignees":[{"login":"BoPeng","id":9889312,"avatar_url":"https://avatars2.githubusercontent.com/u/9889312?v=3","gravatar_id":"","url":"https://api.github.com/users/BoPeng","html_url":"https://github.com/BoPeng","followers_url":"https://api.github.com/users/BoPeng/followers","following_url":"https://api.github.com/users/BoPeng/following{/other_user}","gists_url":"https://api.github.com/users/BoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/BoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoPeng/subscriptions","organizations_url":"https://api.github.com/users/BoPeng/orgs","repos_url":"https://api.github.com/users/BoPeng/repos","events_url":"https://api.github.com/users/BoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/BoPeng/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-03-03T01:29:32Z","updated_at":"2017-03-03T01:29:32Z","closed_at":null,"body":"The task engine of sos knows how to handle each file. For example, a remote execution host could\r\n\r\n1. copy the local task file to remote host\r\n2. use ssh to execute the task\r\n3. use ssh to monitor the status of task, the `sos status task_id` command is executed on the remote host.\r\n4. copy result file back from remote host once the task is completed.\r\n\r\nThe problem is that the task appears to be dead from a local `sos status` command. It would be useful to save host information for each task so that sos knows how to check status. For example, if\r\n\r\n1. sos saves a `.host` file for all remote tasks.\r\n2. local `sos status` command checks the `.host` file and ssh to remote host if necessary to get the status of the job.\r\n4. Similarly, `sos execute` and `sos kill` should be able to start and kill a remote task from local machine.\r\n\r\nA related question is whether or not we should leave the 'translation' step to the `execute` command. I mean, sos could\r\n\r\n1. save a task file that is local.\r\n2. when the task is executed by a remote host engine, the `sos execute` command performs task translation and execute it accordingly.\r\n\r\nThe advantage of this approach is that,\r\n\r\n1. The task can be executed locally and remotely\r\n2. we can use `sos status task` to check local status, and `sos status task -q server` to check the status of the remote file.\r\n\r\nWe could do the conversion on the fly, or use separate files for each host, or combine everything in the `task` file."}}
{"actor":{"display_login":"BoPeng"}}