Skip to content

Commit

Permalink
Relocated delete all ARC jobs to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Jun 16, 2019
1 parent 5664f42 commit 831d56f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 45 deletions.
1 change: 1 addition & 0 deletions arc/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# -*- coding: utf-8 -*-

import scale
import delete
2 changes: 1 addition & 1 deletion delete.py → arc/utils/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from __future__ import (absolute_import, division, print_function, unicode_literals)

from arc.main import delete_all_arc_jobs
from arc.common import delete_all_arc_jobs
from arc.settings import servers

################################################################################
Expand Down
85 changes: 41 additions & 44 deletions ipython/delete all arc jobs.ipynb
Original file line number Diff line number Diff line change
@@ -1,46 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Delete all running ARC jobs from all servers (warning!!! use with caution!)"
]
"cells": [
{
"cell_type": "markdown",
"metadata": {
"pycharm": {}
},
"source": [
"### Delete all running ARC jobs from all servers (warning!!! use with caution!)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"pycharm": {}
},
"outputs": [],
"source": "from arc.utils.delete import delete_all_arc_jobs\n\nserver1 \u003d \u0027pharos\u0027\nserver2 \u003d \u0027rmg\u0027\n\ndelete_all_arc_jobs(server_list\u003d[server1, server2])"
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.16"
}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from arc.main import delete_all_arc_jobs\n",
"\n",
"server1 = 'pharos'\n",
"server2 = 'rmg'\n",
"\n",
"delete_all_arc_jobs(server_list=[server1, server2])"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.16"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 831d56f

Please sign in to comment.