{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/21760","labels_url":"https://api.github.com/repos/saltstack/salt/issues/21760/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/21760/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/21760/events","html_url":"https://github.com/saltstack/salt/issues/21760","id":62570145,"number":21760,"title":"Show job id `jid` on premature exit of any kind (i.e. \"no return from minion\") regardless of verbose mode `-v`","user":{"login":"uvsmtid","id":1244960,"avatar_url":"https://avatars.githubusercontent.com/u/1244960?v=3","gravatar_id":"","url":"https://api.github.com/users/uvsmtid","html_url":"https://github.com/uvsmtid","followers_url":"https://api.github.com/users/uvsmtid/followers","following_url":"https://api.github.com/users/uvsmtid/following{/other_user}","gists_url":"https://api.github.com/users/uvsmtid/gists{/gist_id}","starred_url":"https://api.github.com/users/uvsmtid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uvsmtid/subscriptions","organizations_url":"https://api.github.com/users/uvsmtid/orgs","repos_url":"https://api.github.com/users/uvsmtid/repos","events_url":"https://api.github.com/users/uvsmtid/events{/privacy}","received_events_url":"https://api.github.com/users/uvsmtid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"bfdadc"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Won't%20Fix%20For%20Now","name":"Won't Fix For Now","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":241,"closed_issues":459,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-03-20T01:01:31Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-03-18T02:42:11Z","updated_at":"2015-03-20T03:46:29Z","closed_at":null,"body":"For example, if I start long-running job and press `CTRL-C`, the output shows:\r\n```\r\nsalt 'some_minion' state.highstate\r\nExiting on Ctrl-C\r\nThis job's jid is:\r\n20150318104335301427\r\nThe minions may not have all finished running and any remaining minions will return upon completion. To look up the return data for this job later run:\r\nsalt-run jobs.lookup_jid 20150318104335301427\r\n```\r\nThis is fine.\r\n\r\nHowever, when Salt exits on timeout, it shows nothing. Getting `jid` requires inconvenient searching through `jobs.show_jobs` output:\r\n```\r\nsalt 'uncontactable_minion' state.highstate\r\n```\r\nWhy don't Salt show job id on any premature exit whatever the reason is?"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/83881821","html_url":"https://github.com/saltstack/salt/issues/21760#issuecomment-83881821","issue_url":"https://api.github.com/repos/saltstack/salt/issues/21760","id":83881821,"user":{"login":"uvsmtid","id":1244960,"avatar_url":"https://avatars.githubusercontent.com/u/1244960?v=3","gravatar_id":"","url":"https://api.github.com/users/uvsmtid","html_url":"https://github.com/uvsmtid","followers_url":"https://api.github.com/users/uvsmtid/followers","following_url":"https://api.github.com/users/uvsmtid/following{/other_user}","gists_url":"https://api.github.com/users/uvsmtid/gists{/gist_id}","starred_url":"https://api.github.com/users/uvsmtid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uvsmtid/subscriptions","organizations_url":"https://api.github.com/users/uvsmtid/orgs","repos_url":"https://api.github.com/users/uvsmtid/repos","events_url":"https://api.github.com/users/uvsmtid/events{/privacy}","received_events_url":"https://api.github.com/users/uvsmtid/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T03:46:29Z","updated_at":"2015-03-20T03:46:29Z","body":"They are not documented in the online docs (links in my previous comment).\r\nAnd online docs were the first place I looked because (1) I needed config options to avoid typing them for each command and (2) there were no defaults documented in config files as comments.\r\n\r\nI've just checked `--help` output - yes, both options are there.\r\n\r\nI guess explicit list of all possible options in online docs for both command line (online doc synced with `--help`) and configuration file (online doc synced with config file) is the road to perfection."}}