Skip to content

Commit

Permalink
fix: Raise import timeout
Browse files Browse the repository at this point in the history
This fixes `Import to GraphDB failed for dataset … with distribution
URL …, timeout of 10000ms`.
  • Loading branch information
ddeboer committed Dec 8, 2023
1 parent 70839b2 commit addb55d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default {
coverageReporters: ['json-summary', 'text'],
coverageThreshold: {
global: {
lines: 17.56,
statements: 17.56,
branches: 10.61,
lines: 18.46,
statements: 18.46,
branches: 14.15,
functions: 16.32,
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/graphdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export class GraphDBClient implements WriterSparqlClient, ImporterSparqlClient {
config.url
)
.useGdbTokenAuthentication(config.username, config.password)
.setEndpoints([this.endpoint]);
.setEndpoints([this.endpoint])
.setWriteTimeout(60000); // Larger timeout for data dump imports.
this.repository = new graphdb.repository.RDFRepositoryClient(graphdbConfig);
}

Expand Down Expand Up @@ -51,7 +52,6 @@ export class GraphDBClient implements WriterSparqlClient, ImporterSparqlClient {
`CLEAR GRAPH <${dataset.iri}>; LOAD <${distributionUrl}> INTO GRAPH <${namedGraph}>`
)
.setInference(false)
.setTimeout(60)
);
} catch (e) {
console.error(
Expand Down

0 comments on commit addb55d

Please sign in to comment.