What kind of procedures would you use?
I have a custom module in development where I am sending a lot of data as a JSON string via REST/HTTP protocol. There are two obstacles. First, the service that is called has a fixed limit for how much data can be sent. Second, when running manually ( a required optional method) from an admin screen can't reach that limit without a timeout anyway. Because of the amount of data, it may take 1, 2, 3,...n iterations to send all the data.
Additionally, iterations past the first cannot be sent until a callback with a "completion" message is received.
I've discussed the limitations with the service and without being able to monitor the response effectively, waiting to send the next iteration will give the service enough time to process the current iteration and issue the response that it completed. The current suggestion is one iteration every 24 hours. Generally, that seems to suggest to break down the data to separate files of the JSON string. The Module is already doing that anyway.
I'm looking for suggestions to actually manage this unattended in a scheduled task, or multiple scheduled tasks.
Thanks,
Scott
I have a custom module in development where I am sending a lot of data as a JSON string via REST/HTTP protocol. There are two obstacles. First, the service that is called has a fixed limit for how much data can be sent. Second, when running manually ( a required optional method) from an admin screen can't reach that limit without a timeout anyway. Because of the amount of data, it may take 1, 2, 3,...n iterations to send all the data.
Additionally, iterations past the first cannot be sent until a callback with a "completion" message is received.
I've discussed the limitations with the service and without being able to monitor the response effectively, waiting to send the next iteration will give the service enough time to process the current iteration and issue the response that it completed. The current suggestion is one iteration every 24 hours. Generally, that seems to suggest to break down the data to separate files of the JSON string. The Module is already doing that anyway.
I'm looking for suggestions to actually manage this unattended in a scheduled task, or multiple scheduled tasks.
Thanks,
Scott
Comment