Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Consumer stops buying #5

Open
CarstenWalther opened this issue Apr 6, 2018 · 3 comments
Open

Consumer stops buying #5

CarstenWalther opened this issue Apr 6, 2018 · 3 comments

Comments

@CarstenWalther
Copy link
Collaborator

Sometimes the consumer stops buying products.
I suspect that a specific buying behavior crashes if it is chosen. In that case, the consumer fails silently.
The consumer buys again, if it is stopped and started.
A temporary workaround is to only use buying behaviors that are known to work (cheapest, second cheapest).

I had the same problem when defining a new buying behavior without an implementation.
The consumer fails silently when trying to call the non-existing function.

I'm on the docker setup on Ubuntu.

@jaSunny
Copy link
Collaborator

jaSunny commented Apr 9, 2018

For executing buying behaviors, Ruby's thread function is used for multithreading. If there is an exception in this thread, it would be raised. For debugging, you may comment that out in line 57 and see if an error is thrown.

@Bouncner
Copy link
Contributor

Bouncner commented Jun 6, 2018

Is that now fixed?

@CarstenWalther
Copy link
Collaborator Author

This is still an issue.

It's now possible to see a stack trace of the error when running the consumer in debug mode.
This will help finding the bug.

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

No branches or pull requests

3 participants