-
Notifications
You must be signed in to change notification settings - Fork 6
Orquesta workflow: Saving the definition again results in dup key error #274
Comments
Saw this happen once but am having trouble replicating. @m4dcoder if you can replicate, please post the steps. |
Here's steps from Nick:
Have not tested this myself |
I can replicate it relatively easily myself: Select a pack that you want to put your new workflow in Error saving workflow.: Tried to save duplicate unique keys (E11000 duplicate key error collection: st2.action_d_b index: uid_1 dup key: { : "action:training:sequence1" }) I can provide a system in a faulty state if needed. |
This was fixed in v3.0.0, but not 100%. There is still a race / edge case if you click save button twice in quick succession before workflow gets saved and actions re fetched. See #355 (comment) for details. Which version are you using? |
I am using st2 3.0dev (2f5fa9b), on Python 2.7.12 Compared to #355 : in my case I did not act quickly and once you are in trouble the only workaround is to save under a different name. |
It looks like you are using old version (2f5fa9b is 13 days old and doesn't include fixes we made for v3.0.0 mid to late last week (you can also confirm st2flow package version by doing Please try upgrading - v3.0.0 stable is now out so you can directly upgrade to latest enterprise stable packages. |
I modified the workflow metadata (try something different on the input parameter) and tried to save the workflow again. st2flow returns a DB error saying the workflow already exists.
The text was updated successfully, but these errors were encountered: