{"action":"closed","issue":{"url":"https://api.github.com/repos/BoPeng/SOS/issues/262","repository_url":"https://api.github.com/repos/BoPeng/SOS","labels_url":"https://api.github.com/repos/BoPeng/SOS/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/BoPeng/SOS/issues/262/comments","events_url":"https://api.github.com/repos/BoPeng/SOS/issues/262/events","html_url":"https://github.com/BoPeng/SOS/issues/262","id":183841566,"number":262,"title":"_index issues with concurrent process","user":{"login":"gaow","id":917985,"avatar_url":"https://avatars.githubusercontent.com/u/917985?v=3","gravatar_id":"","url":"https://api.github.com/users/gaow","html_url":"https://github.com/gaow","followers_url":"https://api.github.com/users/gaow/followers","following_url":"https://api.github.com/users/gaow/following{/other_user}","gists_url":"https://api.github.com/users/gaow/gists{/gist_id}","starred_url":"https://api.github.com/users/gaow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaow/subscriptions","organizations_url":"https://api.github.com/users/gaow/orgs","repos_url":"https://api.github.com/users/gaow/repos","events_url":"https://api.github.com/users/gaow/events{/privacy}","received_events_url":"https://api.github.com/users/gaow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-19T01:09:47Z","updated_at":"2016-10-19T02:48:52Z","closed_at":"2016-10-19T02:48:52Z","body":"I noticed this problem as I was digging into some unexpected results from my work. Here is the MWE:\r\n\r\n```\r\nparameter: A = []\r\n\r\n[work: shared = {'A': 'output'}]\r\noutput: '1.txt', '2.txt'\r\nrun:\r\n  touch ${output}\r\n\r\n[another_work]\r\ninput: '1.txt', '2.txt', group_by='single'\r\ntask: concurrent=True\r\npython:\r\n print(${_index})\r\n print(${A[_index] if A else None!r})\r\n\r\n\r\n[default]\r\nsos_run('work+another_work')\r\n```\r\n\r\nSo with `task: concurrent=True` I get:\r\n\r\n```\r\n0\r\n1.txt\r\n0\r\n1.txt\r\n```\r\nwhich is wrong. But removing that line, I get the correct result:\r\n```\r\n0\r\n1.txt\r\n1\r\n2.txt\r\n```\r\nI did not expect `_index` behave this way. Am I missing something or it is a problem we should fix?"}}
{"actor":{"display_login":"gaow"}}