)]}'
{"specs/ocata/approved/workflow-global-context.rst":[{"author":{"_account_id":19206,"name":"Dawid Deja","email":"dawdej@gmail.com","username":"ddeja"},"change_message_id":"40715e41c58c0b4137ef33b532962a6ba4151058","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"In order to achieve this goal the proposal is:"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add the new keyword \"publish-global\" which is similar to \"publish\""},{"line_number":82,"context_line":"  with the difference that it publishes variables into workflow global"},{"line_number":83,"context_line":"  context instead of branch workflow context."},{"line_number":84,"context_line":"* Add the new YAQL/Jinja function \"global()\" to explicitly access"},{"line_number":85,"context_line":"  variables in workflow global context."},{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_10a86b76","line":83,"range":{"start_line":81,"start_character":2,"end_line":83,"end_character":45},"updated":"2017-01-18 10:25:55.000000000","message":"How do we want to resolve conflicts - two threads adding/subtracting simultaneously to same value?","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"ed3050ae42630d55e5578c8968e7d2299f12ee1b","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"In order to achieve this goal the proposal is:"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add the new keyword \"publish-global\" which is similar to \"publish\""},{"line_number":82,"context_line":"  with the difference that it publishes variables into workflow global"},{"line_number":83,"context_line":"  context instead of branch workflow context."},{"line_number":84,"context_line":"* Add the new YAQL/Jinja function \"global()\" to explicitly access"},{"line_number":85,"context_line":"  variables in workflow global context."},{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a3905b3_ca2522af","line":83,"range":{"start_line":81,"start_character":2,"end_line":83,"end_character":45},"in_reply_to":"5a3905b3_a1e80618","updated":"2017-01-19 08:17:16.000000000","message":"Ok, I agree that it\u0027s important to mention. I\u0027ll fix this. Thanks.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"f8147cca0672d589c3fec572d3c35dbcae0e3c90","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"In order to achieve this goal the proposal is:"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add the new keyword \"publish-global\" which is similar to \"publish\""},{"line_number":82,"context_line":"  with the difference that it publishes variables into workflow global"},{"line_number":83,"context_line":"  context instead of branch workflow context."},{"line_number":84,"context_line":"* Add the new YAQL/Jinja function \"global()\" to explicitly access"},{"line_number":85,"context_line":"  variables in workflow global context."},{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_da1a81c5","line":83,"range":{"start_line":81,"start_character":2,"end_line":83,"end_character":45},"in_reply_to":"7a3c09a3_10a86b76","updated":"2017-01-18 10:42:50.000000000","message":"Up to workflow designer. For example, for cross branch communications of type \"A only writes, B only reads\" it\u0027s not an issue. If more than one branch writes the same variable value there can be a race condition but a user needs to be aware of that. Btw, it exists even now in Mistral when we combine multiple branches with \"join\" and in which we publish same variables. In some scenarios even writing from multiple branches is ok, depends on a use case. For example, we implement a fail-fast behavior inside our workflows by setting a special flag from \u0027false\u0027 to \u0027true\u0027. It\u0027s ok if multiple branches do this operation, the order doesn\u0027t matter in this case.\n\nBut if user really wants to make operations with these variables atomic they can use what I now call \"publish-global-atomic\". Or sometimes it\u0027ll be enough just to take results of concrete tasks with function task() and re-publish the variable to eliminate ambiguity for downstream tasks.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":6732,"name":"Lingxian Kong","email":"anlin.kong@gmail.com","username":"kong"},"change_message_id":"30178423ea4e123e6a2070f9a79e4b9345f6e4c9","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"In order to achieve this goal the proposal is:"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add the new keyword \"publish-global\" which is similar to \"publish\""},{"line_number":82,"context_line":"  with the difference that it publishes variables into workflow global"},{"line_number":83,"context_line":"  context instead of branch workflow context."},{"line_number":84,"context_line":"* Add the new YAQL/Jinja function \"global()\" to explicitly access"},{"line_number":85,"context_line":"  variables in workflow global context."},{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a3905b3_a1e80618","line":83,"range":{"start_line":81,"start_character":2,"end_line":83,"end_character":45},"in_reply_to":"7a3c09a3_7c8fb774","updated":"2017-01-19 03:14:57.000000000","message":"Agree, \u0027End user impact\u0027 section.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":19206,"name":"Dawid Deja","email":"dawdej@gmail.com","username":"ddeja"},"change_message_id":"7290adb1efada7589c43eae0baa330e29bf396c1","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"In order to achieve this goal the proposal is:"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add the new keyword \"publish-global\" which is similar to \"publish\""},{"line_number":82,"context_line":"  with the difference that it publishes variables into workflow global"},{"line_number":83,"context_line":"  context instead of branch workflow context."},{"line_number":84,"context_line":"* Add the new YAQL/Jinja function \"global()\" to explicitly access"},{"line_number":85,"context_line":"  variables in workflow global context."},{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_7c8fb774","line":83,"range":{"start_line":81,"start_character":2,"end_line":83,"end_character":45},"in_reply_to":"7a3c09a3_da1a81c5","updated":"2017-01-18 15:40:58.000000000","message":"OK, so making it short: We just want to make sure that author of the workflow knows, that there may be a race condition on it and he\u0027s the one responsible for dealing with it.\n\nI\u0027m OK with such idea, but I\u0027d like to have it stated somewhere in the spec that a) there is such issue(?) and therefore b) it must be stated in the docs.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":19206,"name":"Dawid Deja","email":"dawdej@gmail.com","username":"ddeja"},"change_message_id":"40715e41c58c0b4137ef33b532962a6ba4151058","unresolved":false,"context_lines":[{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"},{"line_number":87,"context_line":"  Jinja in a way that branch variables can shadow them if they are"},{"line_number":88,"context_line":"  published in the current branch."},{"line_number":89,"context_line":"* Add the new keyword \"publish-global-atomic\" which is similar to"},{"line_number":90,"context_line":"  \"publish-global\" but allows to atomically read and write variables"},{"line_number":91,"context_line":"  in workflow global context by acquiring a temporary lock on it."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Example #1 (writing and reading global variables):"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_501833d3","line":91,"range":{"start_line":89,"start_character":2,"end_line":91,"end_character":65},"updated":"2017-01-18 10:25:55.000000000","message":"This one can lead to dead locks: A may wait for information from B, whereas B would wait for information from A. Of course, we can avoid such situation by properly written workflows, but someone can do it to create a deadlock in engine and harm another users.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"f8147cca0672d589c3fec572d3c35dbcae0e3c90","unresolved":false,"context_lines":[{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"},{"line_number":87,"context_line":"  Jinja in a way that branch variables can shadow them if they are"},{"line_number":88,"context_line":"  published in the current branch."},{"line_number":89,"context_line":"* Add the new keyword \"publish-global-atomic\" which is similar to"},{"line_number":90,"context_line":"  \"publish-global\" but allows to atomically read and write variables"},{"line_number":91,"context_line":"  in workflow global context by acquiring a temporary lock on it."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Example #1 (writing and reading global variables):"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_9a49d933","line":91,"range":{"start_line":89,"start_character":2,"end_line":91,"end_character":65},"in_reply_to":"7a3c09a3_501833d3","updated":"2017-01-18 10:42:50.000000000","message":"Nope. That\u0027s why I say that it\u0027s going to be one lock, on the whole storage. There won\u0027t be two or more locks which can be acquired in a different order. It\u0027s one exclusive lock.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"ed3050ae42630d55e5578c8968e7d2299f12ee1b","unresolved":false,"context_lines":[{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"},{"line_number":87,"context_line":"  Jinja in a way that branch variables can shadow them if they are"},{"line_number":88,"context_line":"  published in the current branch."},{"line_number":89,"context_line":"* Add the new keyword \"publish-global-atomic\" which is similar to"},{"line_number":90,"context_line":"  \"publish-global\" but allows to atomically read and write variables"},{"line_number":91,"context_line":"  in workflow global context by acquiring a temporary lock on it."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Example #1 (writing and reading global variables):"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a3905b3_4a3a12cf","line":91,"range":{"start_line":89,"start_character":2,"end_line":91,"end_character":65},"in_reply_to":"7a3c09a3_7c6b3785","updated":"2017-01-19 08:17:16.000000000","message":"Yes :)","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":19206,"name":"Dawid Deja","email":"dawdej@gmail.com","username":"ddeja"},"change_message_id":"7290adb1efada7589c43eae0baa330e29bf396c1","unresolved":false,"context_lines":[{"line_number":86,"context_line":"* Make global variables also accessible using \"$.\" in YAQL and \"_.\" in"},{"line_number":87,"context_line":"  Jinja in a way that branch variables can shadow them if they are"},{"line_number":88,"context_line":"  published in the current branch."},{"line_number":89,"context_line":"* Add the new keyword \"publish-global-atomic\" which is similar to"},{"line_number":90,"context_line":"  \"publish-global\" but allows to atomically read and write variables"},{"line_number":91,"context_line":"  in workflow global context by acquiring a temporary lock on it."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Example #1 (writing and reading global variables):"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_7c6b3785","line":91,"range":{"start_line":89,"start_character":2,"end_line":91,"end_character":65},"in_reply_to":"7a3c09a3_9a49d933","updated":"2017-01-18 15:40:58.000000000","message":"OK, IMHO it may be hard to implement it in such way that we can omit all possibilities of deadlock, but this is something I\u0027ll complain when I see the patches :)","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":19206,"name":"Dawid Deja","email":"dawdej@gmail.com","username":"ddeja"},"change_message_id":"40715e41c58c0b4137ef33b532962a6ba4151058","unresolved":false,"context_lines":[{"line_number":133,"context_line":"   ---"},{"line_number":134,"context_line":"   version: \u00272.0\u0027"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"   vars:"},{"line_number":137,"context_line":"     - my_global_var: 0"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"   wf:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_10494bb7","line":136,"range":{"start_line":136,"start_character":3,"end_line":136,"end_character":8},"updated":"2017-01-18 10:25:55.000000000","message":"Is this \u0027vars\u0027 keyword already in DSL? Spec doesn\u0027t say anything about adding such keyword.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"f8147cca0672d589c3fec572d3c35dbcae0e3c90","unresolved":false,"context_lines":[{"line_number":133,"context_line":"   ---"},{"line_number":134,"context_line":"   version: \u00272.0\u0027"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"   vars:"},{"line_number":137,"context_line":"     - my_global_var: 0"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"   wf:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_fac9fd26","line":136,"range":{"start_line":136,"start_character":3,"end_line":136,"end_character":8},"in_reply_to":"7a3c09a3_10494bb7","updated":"2017-01-18 10:42:50.000000000","message":"It exists, yes. It\u0027s actually similar to \"input\" (if input params have default values) with the only difference that variables can\u0027t be passed from outside.","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":6732,"name":"Lingxian Kong","email":"anlin.kong@gmail.com","username":"kong"},"change_message_id":"30178423ea4e123e6a2070f9a79e4b9345f6e4c9","unresolved":false,"context_lines":[{"line_number":133,"context_line":"   ---"},{"line_number":134,"context_line":"   version: \u00272.0\u0027"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"   vars:"},{"line_number":137,"context_line":"     - my_global_var: 0"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"   wf:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a3905b3_4148422e","line":136,"range":{"start_line":136,"start_character":3,"end_line":136,"end_character":8},"in_reply_to":"7a3c09a3_bc2e7f40","updated":"2017-01-19 03:14:57.000000000","message":"Actually, there are more things not in the doc :-(","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"},{"author":{"_account_id":19206,"name":"Dawid Deja","email":"dawdej@gmail.com","username":"ddeja"},"change_message_id":"7290adb1efada7589c43eae0baa330e29bf396c1","unresolved":false,"context_lines":[{"line_number":133,"context_line":"   ---"},{"line_number":134,"context_line":"   version: \u00272.0\u0027"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"   vars:"},{"line_number":137,"context_line":"     - my_global_var: 0"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"   wf:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a3c09a3_bc2e7f40","line":136,"range":{"start_line":136,"start_character":3,"end_line":136,"end_character":8},"in_reply_to":"7a3c09a3_fac9fd26","updated":"2017-01-18 15:40:58.000000000","message":"Strange, there is no place in the docs[1] where \u0027vars\u0027 is used...\n\n[1]http://docs.openstack.org/developer/mistral/dsl/dsl_v2.html","commit_id":"bc7c9675d3536a4bac6b5b0b14aae01b40188423"}]}
