Hello All,
I'm making several API calls and sometimes because the internet is what it is these API calls fail. Some of the API calls are 'critical' as they update data on the ESP and due to that are important. We also make non-critical such as stats or rapleaf etc.
I want to setup all my 'critical' calls to queue on failure. The problem I see is that there are different functions that are called, with a different number of variables.
- I thought about resolving this with the function capture feature in PHP. But not sure if that makes the most sense? What other ways could this be done?
Also how do I make sure that on a 5 min cron I don't get double calls for the same one?
- Would I just mark the ones that I am processing as in-process or something?
Would you put everything in the queue even the ones that 'completed' without error and just mark it as such?
Thanks in advance!
I'm making several API calls and sometimes because the internet is what it is these API calls fail. Some of the API calls are 'critical' as they update data on the ESP and due to that are important. We also make non-critical such as stats or rapleaf etc.
I want to setup all my 'critical' calls to queue on failure. The problem I see is that there are different functions that are called, with a different number of variables.
- I thought about resolving this with the function capture feature in PHP. But not sure if that makes the most sense? What other ways could this be done?
Also how do I make sure that on a 5 min cron I don't get double calls for the same one?
- Would I just mark the ones that I am processing as in-process or something?
Would you put everything in the queue even the ones that 'completed' without error and just mark it as such?
Thanks in advance!