{"action":"created","issue":{"url":"https://api.github.com/repos/radical-cybertools/radical.entk/issues/273","repository_url":"https://api.github.com/repos/radical-cybertools/radical.entk","labels_url":"https://api.github.com/repos/radical-cybertools/radical.entk/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/radical-cybertools/radical.entk/issues/273/comments","events_url":"https://api.github.com/repos/radical-cybertools/radical.entk/issues/273/events","html_url":"https://github.com/radical-cybertools/radical.entk/issues/273","id":366017506,"node_id":"MDU6SXNzdWUzNjYwMTc1MDY=","number":273,"title":"Accessing pipeline/stage/task states in an EnTK script","user":{"login":"SrinivasMushnoori","id":17555489,"node_id":"MDQ6VXNlcjE3NTU1NDg5","avatar_url":"https://avatars0.githubusercontent.com/u/17555489?v=4","gravatar_id":"","url":"https://api.github.com/users/SrinivasMushnoori","html_url":"https://github.com/SrinivasMushnoori","followers_url":"https://api.github.com/users/SrinivasMushnoori/followers","following_url":"https://api.github.com/users/SrinivasMushnoori/following{/other_user}","gists_url":"https://api.github.com/users/SrinivasMushnoori/gists{/gist_id}","starred_url":"https://api.github.com/users/SrinivasMushnoori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SrinivasMushnoori/subscriptions","organizations_url":"https://api.github.com/users/SrinivasMushnoori/orgs","repos_url":"https://api.github.com/users/SrinivasMushnoori/repos","events_url":"https://api.github.com/users/SrinivasMushnoori/events{/privacy}","received_events_url":"https://api.github.com/users/SrinivasMushnoori/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-02T18:12:01Z","updated_at":"2018-10-02T19:48:29Z","closed_at":null,"author_association":"NONE","body":"Hi, I'm working on an EnTK script with adaptivity. As part of `func_condition` as per [this](https://radicalentk.readthedocs.io/en/latest/adv_examples/adapt_ta.html) section of the documentation, I need to know the states of various entities (mostly stages, but also tasks or pipelines in some cases). The output of `func_condition` depends on the states of these entities. I'm attempting to do something like this:\r\n\r\n```\r\nif state=re.states.DONE:\r\n    replica.state = 'W'\r\n    do something \r\nelse\r\n\r\n    do something else\r\n```\r\n\r\nAssistance is appreciated. "},"comment":{"url":"https://api.github.com/repos/radical-cybertools/radical.entk/issues/comments/426406265","html_url":"https://github.com/radical-cybertools/radical.entk/issues/273#issuecomment-426406265","issue_url":"https://api.github.com/repos/radical-cybertools/radical.entk/issues/273","id":426406265,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjQwNjI2NQ==","user":{"login":"SrinivasMushnoori","id":17555489,"node_id":"MDQ6VXNlcjE3NTU1NDg5","avatar_url":"https://avatars0.githubusercontent.com/u/17555489?v=4","gravatar_id":"","url":"https://api.github.com/users/SrinivasMushnoori","html_url":"https://github.com/SrinivasMushnoori","followers_url":"https://api.github.com/users/SrinivasMushnoori/followers","following_url":"https://api.github.com/users/SrinivasMushnoori/following{/other_user}","gists_url":"https://api.github.com/users/SrinivasMushnoori/gists{/gist_id}","starred_url":"https://api.github.com/users/SrinivasMushnoori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SrinivasMushnoori/subscriptions","organizations_url":"https://api.github.com/users/SrinivasMushnoori/orgs","repos_url":"https://api.github.com/users/SrinivasMushnoori/repos","events_url":"https://api.github.com/users/SrinivasMushnoori/events{/privacy}","received_events_url":"https://api.github.com/users/SrinivasMushnoori/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T19:48:29Z","updated_at":"2018-10-02T19:48:29Z","author_association":"NONE","body":"And if I want to identify a specific task called `md_tsk` I do:\r\n\r\n```\r\nif md_tsk.state = 'DONE':\r\n    so_something()\r\n\r\n```\r\n\r\nCorrect?"}}
{"actor":{"display_login":"SrinivasMushnoori"}}