Skip to content

Potential Daklapack Order Loss #604

Open
@cassidysymons

Description

@cassidysymons

While placing the first round of kit orders for the Skin Biome Initiative, I experienced a timeout error. After reconciling with Daklapack, we discovered that they received (and processed) an order that we did not have any record of in our database. While this kit was caught before it was actually shipped, it appears there's a situation where an order can be transmitted but not stored in our database. I see a couple of different issues and potential courses of action:

  1. Most importantly, we should evaluate how to ensure that our database has a record of every order at the time of transmission. Even if we experience a disconnect or other error during order transmission, having a record of the order would allow us to reconcile the status via their API later. The other potential scenario here is that we end up with record of an order that doesn't reach Daklapack at all, which is highly preferable to the opposite (where Daklapack receives an order that we have no record of).

  2. Less importantly, it would be nice to avoid the potential for timeouts here altogether. This is not a high priority, as I don't anticipate having to place huge batches of kit orders on a frequent basis. But if we do identify a future need for frequent manual batch ordering, it would be appropriate to ingest all of the orders and allow Celery to meter out the actual orders, rather than the current model, which places all of the orders in serial while the HTTP request between Flight and Private API is still open.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions