Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
datascience
balsamDEPRECATED
Commits
399815b0
Commit
399815b0
authored
Nov 09, 2016
by
jtchilders
Browse files
fixed import typo
parent
8a87daf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
argo/management/commands/argo_rm_all_jobs.py
View file @
399815b0
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.conf
import
settings
from
argo.UserJobReceiver
import
UserJobReceiver
from
argo.models
import
Argo
DbEntry
from
argo.models
import
Argo
Job
import
os
,
sys
,
time
,
multiprocessing
import
logging
logging
.
basicConfig
(
...
...
@@ -41,7 +41,7 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
options
):
jobs
=
Argo
DbEntry
.
objects
.
all
()
jobs
=
Argo
Job
.
objects
.
all
()
for
job
in
jobs
:
logger
.
info
(
'removing job: '
+
str
(
job
.
id
)
)
job
.
delete
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment