Distributor: Return response from distribution request

Created on 14 Feb 2020  路  4Comments  路  Source: 10up/distributor

We're using distributor in background and calling \Distributor\Subscriptions\send_notifications directly. As the function doesn't return any value, we're not able to get information about the distributed post. Is it possible to return the response of the request from this function, so we can know whether it was distributed successfully or not ?
https://github.com/10up/distributor/blob/develop/includes/subscriptions.php#L280

enhancement help wanted

Most helpful comment

I'll work on a pull request to resolve this.

All 4 comments

@armdev17 thanks again for the feedback. If you're able to work on a PR for this, then we can get it through code review and let you know if we have any questions or concerns.

I'll work on a pull request to resolve this.

We will try to have some progress on this one in near future.
@jeffpaul @dinhtungdu you can find my thoughts here https://github.com/NovemBit/distributor/issues/18 , your feedback will be very useful for us.

Is this something that will helpful others, have you ever noticed timeouts or other issues with sending updates via external connections?

@arsendovlatyan I think being able to capture sites that succeeded and failed is useful, whether that happens via the solution noted or in a different manner should be discussed. We're currently working to finish up the v2.0 release, but will come back to this topic when we're assessing what to milestone for the v2.1 release. In the meantime, if you have any other details on the problem and proposed solution then please note that... thanks!

Was this page helpful?
0 / 5 - 0 ratings