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

After commit events are not triggered on DynamoDB #783

Open
elioncho opened this issue May 17, 2022 · 0 comments
Open

After commit events are not triggered on DynamoDB #783

elioncho opened this issue May 17, 2022 · 0 comments

Comments

@elioncho
Copy link

Describe the bug
After commit events are not triggered on DynamoDB

To Reproduce
Steps to reproduce the behavior:
On a model with DynamoDB, set up aasm like this:

  aasm do
    state :sleeping, initial: true
    state :running, :completed, :error
    event :run, after_commit: %i[execute] do
      transitions from: :sleeping, to: :running
    end
   .....
  end

Call object.run!

The method returns true, but the state is not saved and the execute method is not called.

Expected behavior
The object state must be updated and the execute method should be called

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