{"action":"created","issue":{"url":"https://api.github.com/repos/danthorpe/Operations/issues/77","labels_url":"https://api.github.com/repos/danthorpe/Operations/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/danthorpe/Operations/issues/77/comments","events_url":"https://api.github.com/repos/danthorpe/Operations/issues/77/events","html_url":"https://github.com/danthorpe/Operations/issues/77","id":106055860,"number":77,"title":"Condition to cancel/skip an operation without error?","user":{"login":"sixten","id":7528,"avatar_url":"https://avatars.githubusercontent.com/u/7528?v=3","gravatar_id":"","url":"https://api.github.com/users/sixten","html_url":"https://github.com/sixten","followers_url":"https://api.github.com/users/sixten/followers","following_url":"https://api.github.com/users/sixten/following{/other_user}","gists_url":"https://api.github.com/users/sixten/gists{/gist_id}","starred_url":"https://api.github.com/users/sixten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sixten/subscriptions","organizations_url":"https://api.github.com/users/sixten/orgs","repos_url":"https://api.github.com/users/sixten/repos","events_url":"https://api.github.com/users/sixten/events{/privacy}","received_events_url":"https://api.github.com/users/sixten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danthorpe/Operations/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-11T17:21:21Z","updated_at":"2015-09-14T15:50:25Z","closed_at":null,"body":"Say that I have an operation that I want to perform when certain conditions are met, but not otherwise, and that skipping the operation should be done without prejudice. This becomes especially important within a `GroupOperation`, where any failed operation causes the group to fail.\r\n\r\nMy first impulse would be to have the condition yield `Satisfied`, but cancel the operation. But `OperationConditionEvaluator` specifically fails any operations that are cancelled when it processes the condition results, even if they are all satisfied.\r\n\r\nI suppose I could have the operation cancel itself (or, really, finish immediately) if the conditions aren't met when it tries to start, but this checking might apply to a number of different operations, and I'd like to keep that logic in a composable chunk.\r\n\r\nHow would you recommend approaching this problem within this framework?\r\n"},"comment":{"url":"https://api.github.com/repos/danthorpe/Operations/issues/comments/140122271","html_url":"https://github.com/danthorpe/Operations/issues/77#issuecomment-140122271","issue_url":"https://api.github.com/repos/danthorpe/Operations/issues/77","id":140122271,"user":{"login":"danthorpe","id":309420,"avatar_url":"https://avatars.githubusercontent.com/u/309420?v=3","gravatar_id":"","url":"https://api.github.com/users/danthorpe","html_url":"https://github.com/danthorpe","followers_url":"https://api.github.com/users/danthorpe/followers","following_url":"https://api.github.com/users/danthorpe/following{/other_user}","gists_url":"https://api.github.com/users/danthorpe/gists{/gist_id}","starred_url":"https://api.github.com/users/danthorpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danthorpe/subscriptions","organizations_url":"https://api.github.com/users/danthorpe/orgs","repos_url":"https://api.github.com/users/danthorpe/repos","events_url":"https://api.github.com/users/danthorpe/events{/privacy}","received_events_url":"https://api.github.com/users/danthorpe/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T15:50:25Z","updated_at":"2015-09-14T15:50:25Z","body":"I've corrected my answer which misleadingly uses the term \"failed\"."}}