Skip to content
GitLab
Explore
Sign in
Register
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
dbc7ab3e
Commit
dbc7ab3e
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
can't use error_message for status
parent
bacf1ec6
No related branches found
Branches containing commit
Tags
LOFAR-Release-4_4_133
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/services/copy_service/copy_service.py
+5
-5
5 additions, 5 deletions
SAS/TMSS/backend/services/copy_service/copy_service.py
with
5 additions
and
5 deletions
SAS/TMSS/backend/services/copy_service/copy_service.py
+
5
−
5
View file @
dbc7ab3e
...
...
@@ -107,16 +107,16 @@ class TMSSCopyServiceEventMessageHandler(TMSSEventMessageHandler):
if
df_bytes
>
total_size
:
logger
.
info
(
"
enough free disk space available for copy-subtask id=%s destination=%s df=%d needed=%d
"
,
subtask
[
'
id
'
],
destination
,
df_bytes
,
total_size
)
# clear previously set "not enough free disk space available" error_reason if set
if
subtask
.
get
(
'
error_reason
'
):
self
.
tmss_client
.
do_request_and_get_result_as_string
(
'
PATCH
'
,
subtask
[
'
url
'
],
{
'
error_reason
'
:
None
})
#
#
clear previously set "not enough free disk space available" error_reason if set
#
if subtask.get('error_reason'):
#
self.tmss_client.do_request_and_get_result_as_string('PATCH', subtask['url'], {'error_reason': None})
# run it
self
.
run_copy_subtask
(
subtask
)
else
:
msg
=
"
not enough free disk space available to start copy-subtask id=%s df=%d needed=%d
"
%
(
subtask
[
'
id
'
],
df_bytes
,
total_size
)
logger
.
info
(
msg
)
self
.
tmss_client
.
do_request_and_get_result_as_string
(
'
PATCH
'
,
subtask
[
'
url
'
],
{
'
error_reason
'
:
msg
})
logger
.
warning
(
msg
)
#
self.tmss_client.do_request_and_get_result_as_string('PATCH', subtask['url'], {'error_reason': msg})
except
Exception
as
e
:
logger
.
exception
(
str
(
e
))
...
...
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