sub logic in backend
This commit is contained in:
@@ -3950,6 +3950,14 @@ func remoteOrgJobController(org shuffle.Org, body []byte) error {
|
|||||||
shuffle.SetCache(ctx, cacheKey, featuresBytes, 1800)
|
shuffle.SetCache(ctx, cacheKey, featuresBytes, 1800)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
subscriptionCacheKey := fmt.Sprintf("org_subscriptions_%s", org.Id)
|
||||||
|
subscriptionsBytes, err := json.Marshal(responseData.Subscriptions)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("[ERROR] Failed to marshal Subscriptions for cache: %s", err)
|
||||||
|
} else {
|
||||||
|
shuffle.SetCache(ctx, subscriptionCacheKey, subscriptionsBytes, 1800)
|
||||||
|
}
|
||||||
|
|
||||||
for _, job := range responseData.Jobs {
|
for _, job := range responseData.Jobs {
|
||||||
err = handleCloudJob(job)
|
err = handleCloudJob(job)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user