Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Enhance update workflow API to allow update on provisioned workflow #122

Closed
amitgalitz opened this issue Oct 30, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@amitgalitz
Copy link
Member

amitgalitz commented Oct 30, 2023

Is your feature request related to a problem?

Coming from here.

Currently we have a basic update functionality where we update the entire doc in the global-context index and workflow-state index whenever an update is made. However this doesn't take into account a few things. If we are updating while provisioning is going on we will have to potentially rollback the current steps that were executed. Another caveat is that if provisioning is already done, and users just want to update the query flow for example we probably don't want to create a whole new doc and rollback.

Update failures also are currently a little tricky right now. If we fail to update the state doc for whatever reason, the information regarding provisioning time and more could be wrong here but the global context doc will be updates causes the two not to be synced. In AD when we update a detector for example we need to stop the task beforehand anyways for example so the task is anyways gone before we update. Maybe we should do something similar for us too where we stop the workflow before updating and then that means we either reset or state document there or we delete it completely. When we update and restart the workflow we can create a new state document after handling any failures in stopping.

What solution would you like?

t?

@owaiskazi19
Copy link
Member

@amitgalitz can you verify if this is addressed in #416?

@amitgalitz
Copy link
Member Author

@amitgalitz can you verify if this is addressed in #416?

#416 addresses some of the issue by only allowing updates on non-provisioned workflows. However I think we should continue to aim for an update API that can do more than then. Not sure if 2.13 or even later. Think its still good to call this out as future enhancement, I will update title to reflect that unless you think what we have is good enough for long term.

@amitgalitz amitgalitz changed the title [FEATURE] Update Workflow API [FEATURE] Enhance update workflow API to allow update on provisioned workflow Jan 24, 2024
@minalsha
Copy link
Collaborator

Will be addressed with issue: #526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants