Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
095b49ad
authored
Jul 18, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix notifications
parent
4c85c0e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
circle/vm/tasks/local_periodic_tasks.py
+3
-2
No files found.
circle/vm/tasks/local_periodic_tasks.py
View file @
095b49ad
...
@@ -48,7 +48,8 @@ def garbage_collector(timeout=15):
...
@@ -48,7 +48,8 @@ def garbage_collector(timeout=15):
logger
.
info
(
"Expired instance
%
d destroyed."
,
i
.
pk
)
logger
.
info
(
"Expired instance
%
d destroyed."
,
i
.
pk
)
try
:
try
:
i
.
owner
.
profile
.
notify
(
i
.
owner
.
profile
.
notify
(
ugettext_noop
(
'
%
s destroyed'
),
ugettext_noop
(
ugettext_noop
(
'
%(instance)
s destroyed'
),
ugettext_noop
(
'Your instance <a href="
%(url)
s">
%(instance)
s</a> '
'Your instance <a href="
%(url)
s">
%(instance)
s</a> '
'has been destroyed due to expiration.'
),
'has been destroyed due to expiration.'
),
instance
=
i
.
name
,
url
=
i
.
get_absolute_url
())
instance
=
i
.
name
,
url
=
i
.
get_absolute_url
())
...
@@ -62,7 +63,7 @@ def garbage_collector(timeout=15):
...
@@ -62,7 +63,7 @@ def garbage_collector(timeout=15):
try
:
try
:
i
.
owner
.
profile
.
notify
(
i
.
owner
.
profile
.
notify
(
ugettext_noop
(
'
%(instance)
s suspended'
),
ugettext_noop
(
'
%(instance)
s suspended'
),
ugettext_noop
(
'
%
s destroyed'
),
ugettext_noop
(
ugettext_noop
(
'Your instance <a href="
%(url)
s">
%(instance)
s</a> '
'Your instance <a href="
%(url)
s">
%(instance)
s</a> '
'has been suspended due to expiration. '
'has been suspended due to expiration. '
'You can resume or destroy it.'
),
'You can resume or destroy it.'
),
...
...
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