-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #648 from maykinmedia/feature/594-add-retry-mechanism
[#496] Add retry mechanism
- Loading branch information
Showing
6 changed files
with
228 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
176 changes: 176 additions & 0 deletions
176
...heer/zaken/tests/vcr/cassettes/RecachingZakenTests.test_resync_zaken_retry_mechanism.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Crs: | ||
- EPSG:4326 | ||
Accept-Encoding: | ||
- gzip, deflate, br | ||
Authorization: | ||
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTczNzk3NjYwMSwiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.1LYlUWSglBqFMRp4uh3wFBwBmR9midapufWeCga_k10 | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- python-requests/2.32.3 | ||
method: GET | ||
uri: http://localhost:8003/zaken/api/v1/zaken?expand=resultaat%2Cresultaat.resultaattype%2Czaaktype%2Crollen&archiefnominatie=vernietigen&einddatum__isnull=False&einddatum__lt=2025-01-27 | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
API-version: | ||
- 1.5.1 | ||
Allow: | ||
- GET, POST, HEAD, OPTIONS | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '0' | ||
Content-Security-Policy: | ||
- 'img-src ''self'' data: cdn.redoc.ly cdnjs.cloudflare.com *.tile.openstreetmap.org; | ||
style-src ''self'' ''unsafe-inline'' fonts.googleapis.com cdnjs.cloudflare.com; | ||
connect-src ''self'' raw.githubusercontent.com; base-uri ''self''; frame-src | ||
''self''; form-action ''self''; worker-src ''self'' blob:; font-src ''self'' | ||
fonts.gstatic.com; default-src ''self''; script-src ''self'' ''unsafe-inline'' | ||
cdnjs.cloudflare.com; frame-ancestors ''none''; object-src ''none''' | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Mon, 27 Jan 2025 11:16:41 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- WSGIServer/0.2 CPython/3.10.14 | ||
Server-Timing: | ||
- TimerPanel_utime;dur=173.88300000001777;desc="User CPU time", TimerPanel_stime;dur=9.13500000000056;desc="System | ||
CPU time", TimerPanel_total;dur=183.01800000001833;desc="Total CPU time", | ||
TimerPanel_total_time;dur=190.99712371826172;desc="Elapsed time", SQLPanel_sql_time;dur=3.4432411193847656;desc="SQL | ||
3 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls" | ||
Vary: | ||
- origin, Cookie | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
status: | ||
code: 504 | ||
message: Gateway Timeout | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Crs: | ||
- EPSG:4326 | ||
Accept-Encoding: | ||
- gzip, deflate, br | ||
Authorization: | ||
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTczNzk3NjYwMSwiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.1LYlUWSglBqFMRp4uh3wFBwBmR9midapufWeCga_k10 | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- python-requests/2.32.3 | ||
method: GET | ||
uri: http://localhost:8003/zaken/api/v1/zaken?expand=resultaat%2Cresultaat.resultaattype%2Czaaktype%2Crollen&archiefnominatie=vernietigen&einddatum__isnull=False&einddatum__lt=2025-01-27 | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
API-version: | ||
- 1.5.1 | ||
Allow: | ||
- GET, POST, HEAD, OPTIONS | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '0' | ||
Content-Security-Policy: | ||
- 'img-src ''self'' data: cdn.redoc.ly cdnjs.cloudflare.com *.tile.openstreetmap.org; | ||
style-src ''self'' ''unsafe-inline'' fonts.googleapis.com cdnjs.cloudflare.com; | ||
connect-src ''self'' raw.githubusercontent.com; base-uri ''self''; frame-src | ||
''self''; form-action ''self''; worker-src ''self'' blob:; font-src ''self'' | ||
fonts.gstatic.com; default-src ''self''; script-src ''self'' ''unsafe-inline'' | ||
cdnjs.cloudflare.com; frame-ancestors ''none''; object-src ''none''' | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Mon, 27 Jan 2025 11:16:57 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- WSGIServer/0.2 CPython/3.10.14 | ||
Server-Timing: | ||
- TimerPanel_utime;dur=288.60300000002326;desc="User CPU time", TimerPanel_stime;dur=30.381999999995912;desc="System | ||
CPU time", TimerPanel_total;dur=318.98500000001917;desc="Total CPU time", | ||
TimerPanel_total_time;dur=329.4947147369385;desc="Elapsed time", SQLPanel_sql_time;dur=5.710124969482422;desc="SQL | ||
3 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls" | ||
Vary: | ||
- origin, Cookie | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
status: | ||
code: 504 | ||
message: Gateway Timeout | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Crs: | ||
- EPSG:4326 | ||
Accept-Encoding: | ||
- gzip, deflate, br | ||
Authorization: | ||
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTczNzk3NjYwMSwiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.1LYlUWSglBqFMRp4uh3wFBwBmR9midapufWeCga_k10 | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- python-requests/2.32.3 | ||
method: GET | ||
uri: http://localhost:8003/zaken/api/v1/zaken?expand=resultaat%2Cresultaat.resultaattype%2Czaaktype%2Crollen&archiefnominatie=vernietigen&einddatum__isnull=False&einddatum__lt=2025-01-27 | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
API-version: | ||
- 1.5.1 | ||
Allow: | ||
- GET, POST, HEAD, OPTIONS | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '0' | ||
Content-Security-Policy: | ||
- 'img-src ''self'' data: cdn.redoc.ly cdnjs.cloudflare.com *.tile.openstreetmap.org; | ||
style-src ''self'' ''unsafe-inline'' fonts.googleapis.com cdnjs.cloudflare.com; | ||
connect-src ''self'' raw.githubusercontent.com; base-uri ''self''; frame-src | ||
''self''; form-action ''self''; worker-src ''self'' blob:; font-src ''self'' | ||
fonts.gstatic.com; default-src ''self''; script-src ''self'' ''unsafe-inline'' | ||
cdnjs.cloudflare.com; frame-ancestors ''none''; object-src ''none''' | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Mon, 27 Jan 2025 11:17:02 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- WSGIServer/0.2 CPython/3.10.14 | ||
Server-Timing: | ||
- TimerPanel_utime;dur=286.20599999999286;desc="User CPU time", TimerPanel_stime;dur=31.54599999999874;desc="System | ||
CPU time", TimerPanel_total;dur=317.7519999999916;desc="Total CPU time", TimerPanel_total_time;dur=327.64530181884766;desc="Elapsed | ||
time", SQLPanel_sql_time;dur=4.678249359130859;desc="SQL 3 queries", CachePanel_total_time;dur=0;desc="Cache | ||
0 Calls" | ||
Vary: | ||
- origin, Cookie | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
status: | ||
code: 504 | ||
message: Gateway Timeout | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters