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

Handle already running flow for the same user #1401

Open
1 of 5 tasks
etshi opened this issue Dec 17, 2019 · 0 comments
Open
1 of 5 tasks

Handle already running flow for the same user #1401

etshi opened this issue Dec 17, 2019 · 0 comments

Comments

@etshi
Copy link

etshi commented Dec 17, 2019

In order to let us help you better, please fill out the following fields as best you can:

I am...

  • Reporting a bug
  • Suggesting a new feature
  • Requesting help with running my bot
  • Requesting help writing plugins
  • Here about something else

I am running...

  • Errbot version: 9.9.9
  • OS version:
  • Python version: 3.6
  • Using a virtual environment: yes

Issue description

When in the middle of a flow with auto triggered first_step, if I used the command that triggered the first step. The first step still reruns.
My question is How can I check if a flow from the same user is already running, so I can end it in the above case?

Steps to reproduce

Flow:
!step_one !steptwo End

step_one is auto triggered and depending on the input from user either end or move to step_two. on step_one just use the same command that triggers step_one again

Additional info

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