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

Load generic order from database if not already in cache #17

Open
marcdoan opened this issue Feb 18, 2016 · 1 comment
Open

Load generic order from database if not already in cache #17

marcdoan opened this issue Feb 18, 2016 · 1 comment

Comments

@marcdoan
Copy link
Contributor

CASE SUMMARY

  • Manish's order queue is empty after successfully logging into the Driver App
  • The call to getAllAssigned returns the following error:
    class java.lang.Exception-Error - Order g-429 not found

DIAGNOSIS

  • Prior to the release of Order Ahead, Houston loads the following orders from MySQL whenever it "resyncs"
    1. All "open" orders (any state except "delivered" or "cancelled")
    2. All "closed" orders on the current day
  • With the introduction of Order Ahead, Houston only loads orders for that particular day whenever it resyncs
  • Therefore, if a driver forgets to complete an order (or the dispatchers forget to "clear" out-dated orders), an order from the previous day will still be in the driver's order queue but not loaded by Houston after a resync (and thus missing)

PROPOSED SOLUTION

  • Lazy-load generic orders. If a generic order is not found in Houston's cache, load it from MySQL regardless of which day it was created on
@marcdoan
Copy link
Contributor Author

@josephlausf

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