Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6a7bb6c1
authored
Dec 01, 2021
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Randomized mail messages
CELERY_TIMEZONE='CET'
parent
479d230f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
circle/manager/mancelery.py
+4
-3
No files found.
circle/manager/mancelery.py
View file @
6a7bb6c1
...
@@ -22,6 +22,7 @@ from datetime import timedelta
...
@@ -22,6 +22,7 @@ from datetime import timedelta
from
celery.schedules
import
crontab
from
celery.schedules
import
crontab
from
kombu
import
Queue
,
Exchange
from
kombu
import
Queue
,
Exchange
from
os
import
getenv
from
os
import
getenv
from
random
import
randint
HOSTNAME
=
"localhost"
HOSTNAME
=
"localhost"
...
@@ -67,7 +68,7 @@ celery.conf.update(
...
@@ -67,7 +68,7 @@ celery.conf.update(
'dashboard.send_email_notifications'
:
{
'dashboard.send_email_notifications'
:
{
'task'
:
'dashboard.tasks.local_periodic_tasks.'
'task'
:
'dashboard.tasks.local_periodic_tasks.'
'send_email_notifications'
,
'send_email_notifications'
,
'schedule'
:
crontab
(
minute
=
10
,
hour
=
1
),
'schedule'
:
crontab
(
minute
=
randint
(
0
,
59
),
hour
=
randint
(
0
,
6
)
),
'options'
:
{
'queue'
:
'localhost.man'
}
'options'
:
{
'queue'
:
'localhost.man'
}
},
},
# 'vm.local_periodic_tasks': {
# 'vm.local_periodic_tasks': {
...
@@ -75,8 +76,8 @@ celery.conf.update(
...
@@ -75,8 +76,8 @@ celery.conf.update(
# 'schedule': crontab(**crontab_parser(AUTO_MIGRATION_CRONTAB)),
# 'schedule': crontab(**crontab_parser(AUTO_MIGRATION_CRONTAB)),
# 'options': {'queue': 'localhost.man.slow'},
# 'options': {'queue': 'localhost.man.slow'},
# },
# },
}
}
,
CELERY_TIMEZONE
=
'CET'
)
)
...
...
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