Skip to content
10 changes: 9 additions & 1 deletion src/overlord/Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ export class ProxyOverlord {
console.log("Proxy finished any pending caching transactions");
}

async finishRockHeaderUpdating() {
const options = {
'Overlord-job.type': 'Rock::HeaderUpdater',
};
await this._remoteCall("/finishJobs", options);
console.log("Proxy finished all HTTP header updating jobs in rock cache_dir(s)");
}

// Wait for the proxy to accumulate exactly the given number of
// not-yet-satisfied requests (containing the given URL path). This only
// works if the proxy can parse request (headers) but cannot satisfy those
Expand Down Expand Up @@ -526,7 +534,7 @@ export class ProxyOverlord {
host: "127.0.0.1",
port: 13128,
headers: {
'Pop-Version': 8,
'Pop-Version': 9,
},
};

Expand Down