Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
ad4882dd
Commit
ad4882dd
authored
May 29, 2024
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
STY: removed some minor style issues
parent
2fcd06b3
No related branches found
No related tags found
2 merge requests
!178
FIX: #96 Better error output for crawl.py script.
,
!167
Sync Graph
Pipeline
#51536
passed with warnings
May 29, 2024
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/caoscrawler/crawl.py
+7
-7
7 additions, 7 deletions
src/caoscrawler/crawl.py
src/caoscrawler/sync_graph.py
+1
-1
1 addition, 1 deletion
src/caoscrawler/sync_graph.py
with
8 additions
and
8 deletions
src/caoscrawler/crawl.py
+
7
−
7
View file @
ad4882dd
...
@@ -336,7 +336,7 @@ class Crawler(object):
...
@@ -336,7 +336,7 @@ class Crawler(object):
# )
# )
raise
RuntimeError
(
raise
RuntimeError
(
f
"
Could not finish split_into_inserts_and_updates.
"
"
Could not finish split_into_inserts_and_updates.
"
"
It might be due to a circular dependency
"
)
"
It might be due to a circular dependency
"
)
return
st
.
export_record_lists
()
return
st
.
export_record_lists
()
...
@@ -692,14 +692,14 @@ class Crawler(object):
...
@@ -692,14 +692,14 @@ class Crawler(object):
cache_clear
()
cache_clear
()
self
.
execute_parent_updates_in_list
(
to_be_updated
,
securityMode
=
self
.
securityMode
,
self
.
execute_parent_updates_in_list
(
to_be_updated
,
securityMode
=
self
.
securityMode
,
run_id
=
self
.
run_id
,
unique_names
=
unique_names
)
run_id
=
self
.
run_id
,
unique_names
=
unique_names
)
logger
.
info
(
f
"
Added parent RecordTypes where necessary.
"
)
logger
.
info
(
"
Added parent RecordTypes where necessary.
"
)
self
.
execute_inserts_in_list
(
self
.
execute_inserts_in_list
(
to_be_inserted
,
self
.
securityMode
,
self
.
run_id
,
unique_names
=
unique_names
)
to_be_inserted
,
self
.
securityMode
,
self
.
run_id
,
unique_names
=
unique_names
)
logger
.
info
(
f
"
Executed inserts:
\n
"
logger
.
info
(
"
Executed inserts:
\n
"
+
self
.
create_entity_summary
(
to_be_inserted
))
+
self
.
create_entity_summary
(
to_be_inserted
))
self
.
execute_updates_in_list
(
self
.
execute_updates_in_list
(
to_be_updated
,
self
.
securityMode
,
self
.
run_id
,
unique_names
=
unique_names
)
to_be_updated
,
self
.
securityMode
,
self
.
run_id
,
unique_names
=
unique_names
)
logger
.
info
(
f
"
Executed updates:
\n
"
logger
.
info
(
"
Executed updates:
\n
"
+
self
.
create_entity_summary
(
to_be_updated
))
+
self
.
create_entity_summary
(
to_be_updated
))
update_cache
=
UpdateCache
()
update_cache
=
UpdateCache
()
...
@@ -832,13 +832,13 @@ def _update_status_record(run_id, n_inserts, n_updates, status):
...
@@ -832,13 +832,13 @@ def _update_status_record(run_id, n_inserts, n_updates, status):
cr_rec
.
get_property
(
'
status
'
).
value
=
status
cr_rec
.
get_property
(
'
status
'
).
value
=
status
(
cr_rec
(
cr_rec
.
add_property
(
db
.
execute_query
(
.
add_property
(
db
.
execute_query
(
f
"
FIND Property with name=
'
number_of_inserted_entities
'"
,
unique
=
True
).
id
,
"
FIND Property with name=
'
number_of_inserted_entities
'"
,
unique
=
True
).
id
,
n_inserts
)
n_inserts
)
.
add_property
(
.
add_property
(
db
.
execute_query
(
f
"
FIND Property with name=
'
number_of_updated_entities
'"
,
db
.
execute_query
(
"
FIND Property with name=
'
number_of_updated_entities
'"
,
unique
=
True
).
id
,
n_updates
)
unique
=
True
).
id
,
n_updates
)
.
add_property
(
.
add_property
(
db
.
execute_query
(
f
"
FIND Property with name=
'
finished
'"
,
db
.
execute_query
(
"
FIND Property with name=
'
finished
'"
,
unique
=
True
).
id
,
datetime
.
now
().
isoformat
()))
unique
=
True
).
id
,
datetime
.
now
().
isoformat
()))
cr_rec
.
update
()
cr_rec
.
update
()
...
...
This diff is collapsed.
Click to expand it.
src/caoscrawler/sync_graph.py
+
1
−
1
View file @
ad4882dd
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment