Tuesday, 2020-04-28

*** __ministry has joined #openstack-mistral02:06
*** apetrich has quit IRC02:09
*** threestrands has joined #openstack-mistral03:12
*** ykarel|away is now known as ykarel04:28
*** nightmare_unreal has joined #openstack-mistral06:54
*** pgaxatte has joined #openstack-mistral07:07
*** apetrich has joined #openstack-mistral07:23
*** ykarel is now known as ykarel|afk07:35
rakhmerovnightmare_unreal: hi07:40
nightmare_unrealhello rakhmerov07:41
rakhmerovas far as subworkflows you can do this:07:41
rakhmerov$ mistral execution-list --root-execution <execution id>07:41
nightmare_unrealaah awesome !! :D Thanks a lot07:42
rakhmerovit will print all workflow executions from the same tree :)07:42
rakhmerovyeah, np07:42
nightmare_unreal:D07:42
rakhmerovnightmare_unreal: sorry, seems like I'm misleading you...07:47
rakhmerovit turns out that we don't have this parameter on the CLI07:48
nightmare_unrealaah , I haven't tried the command yet07:48
rakhmerovwe have --rootsonly but that will retain only the root executions (not sub workflow executions)07:48
nightmare_unrealso it's not the way07:48
rakhmerovhm..07:48
rakhmerovyeah07:48
rakhmerovwait a sec, looking at it..07:48
nightmare_unrealthe thing is mistral dashboard shows them07:49
rakhmerovyes, because on the API this parameter exists07:49
nightmare_unreallike each executed workflow ( sub worfklow) and their task lists too. So I thought there must be a CLI way07:49
rakhmerovbut not in the Python client and hence CLI07:49
nightmare_unrealOh07:49
rakhmerovnope, seems like it doesn't exist07:49
rakhmerovyeah07:49
rakhmerovit's easy to add it though07:49
nightmare_unrealwhere should I look into ?07:50
rakhmerovso, small update: if you're using just a Python client (aka binding) then you can pass this parameter07:51
rakhmerovso it doesn't exist only in the CLI07:52
rakhmerovI'm going to add it now07:52
rakhmerovI'm surprised we still don't have it07:52
nightmare_unrealokay07:56
nightmare_unrealwell thanks :)07:56
nightmare_unrealyeah i am just using python cli of mistral07:57
*** ykarel|afk is now known as ykarel07:58
rakhmerovI see07:59
rakhmerovbtw07:59
rakhmerovyou can also try: mistral execution-get-report 06823f3b-7279-480e-907d-2bac6173adb2 --no-errors-only08:00
rakhmerovit will print the entire execution tree with sub executions, task executions and action executions08:00
rakhmerovnot sure though if it's going to be helpful08:00
rakhmerovnot this "--no-errors-only" param, it's needed to print all tree08:01
rakhmerovby default it only prints all error paths (e.g. task A in the root workflow failed, it will print it including its sub execution etc. etc.)08:01
rakhmerovnot this => note this08:01
nightmare_unrealI will try this thanks . Will let you know08:12
nightmare_unrealyup it prints workflow execution tree and I think it has every ID08:15
nightmare_unrealthanks08:15
rakhmerovyes08:16
rakhmerovnightmare_unreal: hey, you can actually do this08:19
rakhmerov:)08:19
nightmare_unrealyes08:19
rakhmerovI completely forgot that Mistral has such a thing called "filters"08:19
rakhmerovmistral execution-list --filter root_execution_id=06823f3b-7279-480e-907d-2bac6173adb208:19
rakhmerovand you can repeat this "--filter" many times for different fields08:19
nightmare_unrealaah and where can i see list of filters ?08:20
rakhmerovbasically you can pass anything you want that is available on the REST API08:20
rakhmerov:)08:20
rakhmerovaahh... good question08:20
rakhmerovwait a min..08:20
rakhmerovnightmare_unreal: this is the best source: https://docs.openstack.org/mistral/latest/user/rest_api_v2.html#executions08:22
nightmare_unrealawesome :D . Much appreciated08:23
rakhmerov:)08:25
rakhmerovyou're welcome08:25
*** ykarel is now known as ykarel|lunch08:39
*** ykarel|lunch is now known as ykarel09:48
*** eyalb2 has quit IRC10:15
*** eyalb2 has joined #openstack-mistral10:16
*** jenner has quit IRC10:32
*** mgariepy has joined #openstack-mistral11:54
*** mgariepy has quit IRC12:02
*** mgariepy has joined #openstack-mistral12:16
*** ykarel is now known as ykarel|afk13:01
*** ykarel|afk is now known as ykarel14:00
*** ykarel is now known as ykarel|away15:01
*** mgariepy has quit IRC15:24
*** mgariepy has joined #openstack-mistral15:26
*** mgariepy has quit IRC15:33
*** mgariepy has joined #openstack-mistral15:46
*** pgaxatte has quit IRC17:23
*** nightmare_unreal has quit IRC17:25
*** threestrands has quit IRC20:09

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!