Add fallback source type to handle errors#156
Add fallback source type to handle errors#156tbonfort wants to merge 3 commits intoMapServer:mainfrom tbonfort:fallback-source
Conversation
|
cc @tevbrasch |
|
@tbonfort - Is this pull request still relevant? |
|
@tevbrasch are you still using this? If so please create a new PR based against the current main branch so it can be included. |
|
Hi @tbonfort , yes we're still using this. But we haven't made a any additions or changes, so not sure why it needs a new PR? |
|
Thanks @tevbrasch , this does look like it would be very useful to the community, and it was already re-based to the main branch automatically. We should re-open this ticket and set the target to the upcoming 1.12.0 release. For some reason I am unable to re-open here, can someone else re-open this ticket? |
@tevbrasch for this to be included in an upcoming release, someone has to take the time and effort to fix the merge conflicts. Once that's done the result can be pushed to a new PR and be milestoned. |
|
@tevbrasch I don't have a local copy of these changes, as unfortunately the directory with the changes was just deleted. Would you mind filing a new pull request with those changed files? thanks. |
In the same vein as fallback caches, this PR adds support for fallback sources. If the first configured source fails, mapcache will cycle the remaining configured sources until/if one succeeds. If all fail, the error message of the first failing source will be returned.
example usage/config: