Represents a list containing work subscriptions which should share the same subscription reference
Represents a list containing work subscriptions which should share the same subscription reference
Consider a groupList representing 'mySubscriptionGroups' below:
mySubscriptionGroups : [ # group one [${lightWorkItem1}, ${lightWorkItem2}], # group two [${singleHeavyItem}] ]
where 'lightWorkItem1', 'lightWorkItem2' and 'singleHeavyItem' are assumed to be subscriptions declared elsewhere in the configuration, such as :
# take the base subscription settings lightWorkItem1 = ${subscription} lightWorkItem1 { details: { runUser: ${USER} path: "rest/worker/light1" name: "light work item" } jobMatcher: "match-all" submissionMatcher: "match-all" subscriptionReferences : [] }
The intention is for each group to share a subscription reference, so 'lightWorkItem1' and 'lightWorkItem2' will agora.api.exchange.Exchange.take from the same subscription ID.
'singleHeavyItem' sits on its own, and so doesn't use a subscription reference unless it has declared one itself
The group's subscription reference is simply concatenated with any already declared subscriptionReferences, so if a member of a group already contains subscription references, it will also contain the group's subscription reference.