Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
ba5bcf4b
Commit
ba5bcf4b
authored
8 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
Task #9607: logging
parent
f138f766
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SAS/DataManagement/CleanupService/rpc.py
+3
-1
3 additions, 1 deletion
SAS/DataManagement/CleanupService/rpc.py
SAS/DataManagement/DataManagementCommon/path.py
+1
-1
1 addition, 1 deletion
SAS/DataManagement/DataManagementCommon/path.py
with
4 additions
and
2 deletions
SAS/DataManagement/CleanupService/rpc.py
+
3
−
1
View file @
ba5bcf4b
...
@@ -46,7 +46,9 @@ def main():
...
@@ -46,7 +46,9 @@ def main():
path_result
=
rpc
.
getPathForOTDBId
(
otdb_id
)
path_result
=
rpc
.
getPathForOTDBId
(
otdb_id
)
if
path_result
[
'
found
'
]:
if
path_result
[
'
found
'
]:
path
=
path_result
[
'
path
'
]
path
=
path_result
[
'
path
'
]
print
"
This will delete everything in
'
%s
'
.
"
%
path
scratch_paths
=
path_result
[
'
scratch_paths
'
]
paths
=
scratch_paths
+
[
path
]
print
"
This will delete everything in
'
%s
'
.
"
%
'
,
'
.
join
(
paths
)
if
raw_input
(
"
Are you sure? (y/n)
"
)
==
'
y
'
:
if
raw_input
(
"
Are you sure? (y/n)
"
)
==
'
y
'
:
result
=
rpc
.
removeTaskData
(
otdb_id
)
result
=
rpc
.
removeTaskData
(
otdb_id
)
print
print
...
...
This diff is collapsed.
Click to expand it.
SAS/DataManagement/DataManagementCommon/path.py
+
1
−
1
View file @
ba5bcf4b
...
@@ -80,7 +80,7 @@ class PathResolver:
...
@@ -80,7 +80,7 @@ class PathResolver:
scratch_path
=
os
.
path
.
join
(
self
.
scratch_path
,
'
Observation%s
'
%
task
[
'
otdb_id
'
])
scratch_path
=
os
.
path
.
join
(
self
.
scratch_path
,
'
Observation%s
'
%
task
[
'
otdb_id
'
])
share_path
=
os
.
path
.
join
(
self
.
share_path
,
'
Observation%s
'
%
task
[
'
otdb_id
'
])
share_path
=
os
.
path
.
join
(
self
.
share_path
,
'
Observation%s
'
%
task
[
'
otdb_id
'
])
logger
.
debug
(
"
Checking scratch paths %s %s for otdb_id=%s mom_id=%s radb_id=%s
"
%
(
scratch_path
,
share_path
,
task
[
'
otdb_id
'
],
task
[
'
mom_id
'
],
task
[
'
id
'
]))
logger
.
info
(
"
Checking scratch paths %s %s for otdb_id=%s mom_id=%s radb_id=%s
"
%
(
scratch_path
,
share_path
,
task
[
'
otdb_id
'
],
task
[
'
mom_id
'
],
task
[
'
id
'
]))
if
self
.
pathExists
(
scratch_path
):
if
self
.
pathExists
(
scratch_path
):
path_result
[
'
scratch_paths
'
].
append
(
scratch_path
)
path_result
[
'
scratch_paths
'
].
append
(
scratch_path
)
...
...
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