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

Stop loop bis #2126

Merged
merged 2 commits into from
Aug 2, 2024
Merged
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
40 changes: 31 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 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
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