Task Runner Shipping Rates Cache #262
Labels
area:task-runner
Related to Nebula's Task Runner package
priority:low
Issues that are low priority don't need to be solved right away
type:enhancement
New feature or request
type:Feature Request
Something that might be done in the future
Milestone
Is your feature request related to a problem? Please describe.
When a user starts a task, we can be under the assumption that the product isn't live yet, right? Therefore, our current Task Runner will go through the steps:
for api:
for frontend:
Here we will hang until the product is live.
This means, until the product goes live, we don't have:
1. payment gatewayNo longer needed2. shipping rates
Describe the solution you'd like
I'm proposing a concurrent runner that gets started with the current runner that will go through certain steps in order to also find the payment gateway and shipping rates.
Here's what I'm thinking.. We start both the normal task runner, and the pre-carting one at the same time, except.. The pre-carting task runner will go through the steps:
for api:
for frontend:
this isn't possible (at least for sites like DSM with a password page)
At the point it reaches payment gateway and finishes, it should transfer:
back to the main task runner session to be used later. That way, as soon as we find the item, we can complete the checkout a lot faster with less requests. And since the main task runner is still using the old checkout token, we won't need to clear the cart or anything (I think?) but that's something we can look into.
Describe alternatives you've considered
None.
Additional context
This will be a feature that will put us ahead of other bots a ton. I know 1 of the other major bots does this, but not many others.
Edit: see 1st comment for updated idea.
The text was updated successfully, but these errors were encountered: