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

questions about versioning, migrations and stop/resume use cases #356

Closed
rullyalves opened this issue Jun 24, 2024 · 1 comment
Closed

Comments

@rullyalves
Copy link

Hello, first I would like to thank you for the great library, it offered me a great way to solve a problem that was causing me pain

I have some questions about implementation and specific use cases, could you help me?

1 - there are use cases where a workflow can be started, paused for a long time and then resume execution, if an activity calculates a volatile value, such as a user's account balance, is there any way to restart the workflow if it takes a long time to execute? I thought about using "continueAsNew" for this, but it would restart the entire workflow and not just specific activities
I thought about using continueAsNew to enable migrations without filling the code with if/else conditions, would it be viable to use continueAsNew for this? Or would it be better to keep previous versions of activities/workflows?

2 - about migrations, previously you answered that you could send the version as a parameter, but how do I know that all the workflows in the previous version have already been executed and that I can remove the old code without generating problems?

3 - I'm working with multiple instances, in case of migrations, what would be the best way to synchronize migrations between instances? Do I have any risks if I don't synchronize them?

Finally, how could I contribute to the library? I thought the work was really magnificent and I would like to help with the features

@rullyalves
Copy link
Author

I'm moving this to discussions

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

No branches or pull requests

1 participant