Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to stop the recurcive loop #2124

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 31 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"@emotion/styled": "11.6.0",
"@ezs/analytics": "2.3.2",
"@ezs/basics": "2.7.1",
"@ezs/conditor": "2.12.1",
"@ezs/core": "3.10.2",
"@ezs/conditor": "2.12.2",
"@ezs/core": "3.10.3",
"@ezs/istex": "1.5.9",
"@ezs/lodex": "file:./packages/ezsLodex",
"@ezs/sparql": "1.2.3",
Expand Down Expand Up @@ -121,7 +121,6 @@
"from": "0.1.7",
"history": "^4.7.2",
"inist-ark": "^2.1.3",
"inist-roadmap": "^1.2.0",
"js-sentencecase": "^1.2.1",
"jsonstream": "1.0.3",
"jsonwebtoken": "9.0.2",
Expand Down
10 changes: 6 additions & 4 deletions src/api/services/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,18 @@ export const startImport = async (ctx) => {
const source = url ? url : filename;
const parser =
!loaderName || loaderName === 'automatic' ? extension : loaderName;
const loaderEnvironment = {
source,
parser,
};

fusible = await createFusible();
await enableFusible(fusible);
ctx.job.update({
...ctx.job.data,
fusible,
});
const loaderEnvironment = {
source,
parser,
fusible,
};
let parseStream;
if (customLoader) {
loaderEnvironment.parser =
Expand Down
2 changes: 2 additions & 0 deletions workers/loaders/query-openalex.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ url = env('url')

[loop]
test = has('meta.next_cursor')
; uses the one created by Lodex instead of the local ezs server fuse
fusible = env('fusible')

[loop/replace]
path = filter
Expand Down
Loading