Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lofar_stager_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
ASTRON SDC
lofar_stager_api
Commits
d8a1f0e9
Commit
d8a1f0e9
authored
5 years ago
by
Thomas Jürges
Browse files
Options
Downloads
Patches
Plain Diff
Add copyright notice
parent
1a846ee4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stager_access.py
+16
-6
16 additions, 6 deletions
stager_access.py
with
16 additions
and
6 deletions
stager_access.py
+
16
−
6
View file @
d8a1f0e9
...
...
@@ -10,8 +10,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# This is the Stager API wrapper module for the Lofar LTA staging service.
#
# It uses an xmlrpc proxy to talk and authenticate to the remote service. Your account credentials will be read from
...
...
@@ -21,7 +19,7 @@
# !! This is to ensure that when we change the remote interface, your scripts don't break and you will only have to
# !! upgrade this module.
__version__
=
"
1.
3
"
__version__
=
"
1.
4
"
import
datetime
from
os.path
import
expanduser
...
...
@@ -66,11 +64,11 @@ LtaStager = proxy.LtaStager
# ---
def
stage
(
surls
):
"""
Stage list of SURLs
"""
def
stage
(
surls
,
send_notifications
=
True
):
"""
Stage list of SURLs
, optionally enable/disable email notifications
"""
if
isinstance
(
surls
,
str
):
surls
=
[
surls
]
stageid
=
proxy
.
LtaStager
.
add_getid
(
surls
)
stageid
=
proxy
.
LtaStager
.
add_getid
(
surls
,
send_notifications
)
return
stageid
def
get_status
(
stageid
):
...
...
@@ -81,6 +79,18 @@ def abort(stageid):
"""
Abort running request / release data of a finished request with given ID
"""
return
proxy
.
LtaStager
.
abort
(
stageid
)
def
get_surls_requested
(
stageid
):
"""
Get a list of all files that are requested via a running request with given ID
"""
return
proxy
.
LtaStager
.
getrequestedurls
(
stageid
)
def
get_surls_pending
(
stageid
):
"""
Get a list of all files that are not yet online for a running request with given ID
"""
return
proxy
.
LtaStager
.
getoutstandingurls
(
stageid
)
def
get_surls_failed
(
stageid
):
"""
Get a list of all files that have failed in a running request with given ID
"""
return
proxy
.
LtaStager
.
getfailedurls
(
stageid
)
def
get_surls_online
(
stageid
):
"""
Get a list of all files that are already online for a running request with given ID
"""
return
proxy
.
LtaStager
.
getstagedurls
(
stageid
)
...
...
This diff is collapsed.
Click to expand it.
Thomas Juerges
@tjuerges
mentioned in commit
8a53d7ea
·
5 years ago
mentioned in commit
8a53d7ea
mentioned in commit 8a53d7eab72676d72bc487293e79926217d4b9c9
Toggle commit list
Thomas Juerges
@tjuerges
mentioned in commit
6df03cd9
·
5 years ago
mentioned in commit
6df03cd9
mentioned in commit 6df03cd90ea935014d4f10adc90a2c2c6d457b56
Toggle commit list
Thomas Juerges
@tjuerges
mentioned in commit
82df2637
·
5 years ago
mentioned in commit
82df2637
mentioned in commit 82df263751078c1c59a11752bf17175e8290b80e
Toggle commit list
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