[MediaWiki-commits] [Gerrit] wikimedia...SmashPig[master]: Defaults for more queues

2016-09-14 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Defaults for more queues
..


Defaults for more queues

Add Redis versions of donations, refunds, and recurring

Change-Id: I73bb2cb8d9aecab50501deb502ac3fb2c2129fb8
---
M SmashPig.yaml
1 file changed, 40 insertions(+), 0 deletions(-)

Approvals:
  Awight: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/SmashPig.yaml b/SmashPig.yaml
index ce72eed..d62501a 100644
--- a/SmashPig.yaml
+++ b/SmashPig.yaml
@@ -29,6 +29,13 @@
 constructor-parameters:
 - antifraud
 
+payments-antifraud:
+class: PHPQueue\Backend\Predis
+constructor-parameters:
+-
+<<: *REDIS
+queue: payments-antifraud
+
 pending:
 class: SmashPig\Core\DataStores\StompDataStore
 constructor-parameters:
@@ -41,6 +48,7 @@
 <<: *REDIS
 queue: pending
 
+# FIXME: Consolidate these two backends
 pending-db:
 class: PDO
 constructor-parameters:
@@ -56,6 +64,24 @@
 constructor-parameters:
 - 'mysql:host=127.0.0.1;dbname=fredge'
 
+recurring:
+class: SmashPig\Core\DataStores\MultiQueueWriter
+constructor-parameters:
+-
+- recurring-stomp
+
+recurring-stomp:
+class: SmashPig\Core\DataStores\StompDataStore
+constructor-parameters:
+- recurring
+
+recurring-new:
+class: PHPQueue\Backend\Predis
+constructor-parameters:
+-
+<<: *REDIS
+queue: recurring
+
 refund:
 class: SmashPig\Core\DataStores\MultiQueueWriter
 constructor-parameters:
@@ -66,6 +92,13 @@
 class: SmashPig\Core\DataStores\StompDataStore
 constructor-parameters:
 - refund
+
+refund-new:
+class: PHPQueue\Backend\Predis
+constructor-parameters:
+-
+<<: *REDIS
+queue: refund
 
 limbo:
 class: SmashPig\Core\DataStores\StompDataStore
@@ -93,6 +126,12 @@
 constructor-parameters:
 - verified
 
+donations:
+class: PHPQueue\Backend\Predis
+constructor-parameters:
+-
+<<: *REDIS
+
 # Library definitions
 stomp:
 uri: tcp://localhost:61613
@@ -107,6 +146,7 @@
 failed: /queue/failed
 pending: /queue/pending
 pending-damaged: /queue/pending-damaged
+recurring: /queue/donations_recurring
 refund: /queue/refund
 jobs: /queue/job-requests
 jobs-damaged: /queue/jobs-requests-damaged

-- 
To view, visit https://gerrit.wikimedia.org/r/309181
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I73bb2cb8d9aecab50501deb502ac3fb2c2129fb8
Gerrit-PatchSet: 8
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Ejegg 
Gerrit-Reviewer: Awight 
Gerrit-Reviewer: Cdentinger 
Gerrit-Reviewer: Ejegg 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] wikimedia...SmashPig[master]: Defaults for more queues

2016-09-07 Thread Ejegg (Code Review)
Ejegg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/309181

Change subject: Defaults for more queues
..

Defaults for more queues

Add Redis versions of donations, refunds, and recurring

Change-Id: I73bb2cb8d9aecab50501deb502ac3fb2c2129fb8
---
M SmashPig.yaml
1 file changed, 41 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig 
refs/changes/81/309181/1

diff --git a/SmashPig.yaml b/SmashPig.yaml
index 5b1656a..40fa2af 100644
--- a/SmashPig.yaml
+++ b/SmashPig.yaml
@@ -29,6 +29,13 @@
 inst-args:
 - antifraud
 
+payments-antifraud:
+class: PHPQueue\Backend\Predis
+inst-args:
+-
+<<: *REDIS
+queue: payments-antifraud
+
 pending:
 class: SmashPig\Core\DataStores\StompDataStore
 inst-args:
@@ -41,6 +48,7 @@
 <<: *REDIS
 queue: pending
 
+# FIXME: Consolidate these two backends
 pending-db:
 class: PDO
 inst-args:
@@ -50,6 +58,24 @@
 class: PDO
 inst-args:
 - 'mysql:host=127.0.0.1;dbname=smashpig'
+
+recurring:
+class: SmashPig\Core\DataStores\MultiQueueWriter
+inst-args:
+-
+- recurring-stomp
+
+recurring-stomp:
+class: SmashPig\Core\DataStores\StompDataStore
+inst-args:
+- recurring
+
+recurring-new:
+class: PHPQueue\Backend\Predis
+inst-args:
+-
+<<: *REDIS
+queue: recurring-new
 
 refund:
 class: SmashPig\Core\DataStores\MultiQueueWriter
@@ -61,6 +87,13 @@
 class: SmashPig\Core\DataStores\StompDataStore
 inst-args:
 - refund
+
+refund-new:
+class: PHPQueue\Backend\Predis
+inst-args:
+-
+<<: *REDIS
+queue: refund-new
 
 limbo:
 class: SmashPig\Core\DataStores\StompDataStore
@@ -88,6 +121,13 @@
 inst-args:
 - verified
 
+donations:
+class: PHPQueue\Backend\Predis
+inst-args:
+-
+<<: *REDIS
+queue: donations
+
 # Library definitions
 stomp:
 uri: tcp://localhost:61613
@@ -102,6 +142,7 @@
 failed: /queue/failed
 pending: /queue/pending
 pending-damaged: /queue/pending-damaged
+recurring: /queue/donations_recurring
 refund: /queue/refund
 jobs: /queue/job-requests
 jobs-damaged: /queue/jobs-requests-damaged

-- 
To view, visit https://gerrit.wikimedia.org/r/309181
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I73bb2cb8d9aecab50501deb502ac3fb2c2129fb8
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Ejegg 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits