@spree/docs 0.1.222 → 0.1.223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,6 +32,23 @@ production:
|
|
|
32
32
|
schedule: at 5am every day
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
### Marketplace payouts
|
|
36
|
+
|
|
37
|
+
A marketplace has to schedule one more job, or its sellers are never paid:
|
|
38
|
+
|
|
39
|
+
```yaml config/recurring.yml
|
|
40
|
+
production:
|
|
41
|
+
sweep_seller_payouts:
|
|
42
|
+
class: Spree::SellerPayouts::SweepDueJob
|
|
43
|
+
schedule: at 3am every day
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Run it **daily whatever intervals your sellers are on**. The job only fans
|
|
47
|
+
out; whether a given seller is due — and when they were last settled — is
|
|
48
|
+
decided per seller, because a cron expression cannot say "weekly, counted
|
|
49
|
+
from that seller's own last payout". A seller whose interval is `manual` is
|
|
50
|
+
skipped here by design and is settled by hand from the operator dashboard.
|
|
51
|
+
|
|
35
52
|
## Queues
|
|
36
53
|
|
|
37
54
|
`config/queue.yml` lists queues in polling order: checkout-critical and operator-facing work first, bulk catalog processing second, housekeeping last. A trailing `"*"` catches any queue added later. Large CSV imports are additionally capped so they can't occupy the whole worker pool — see [`SPREE_IMPORT_JOB_CONCURRENCY`](environment_variables.md).
|