Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
352fa067
Commit
352fa067
authored
Oct 18, 2017
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Induce a base class for the scheduling tasks
parent
0c5d788a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
openedx/core/djangoapps/schedules/tasks.py
+6
-11
No files found.
openedx/core/djangoapps/schedules/tasks.py
View file @
352fa067
...
...
@@ -65,10 +65,11 @@ def _recurring_nudge_schedule_send(site_id, msg_str):
ace
.
send
(
msg
)
class
Schedule
RecurringNudge
(
Task
):
ignore_result
=
True
routing_key
=
ROUTING_KEY
class
Schedule
MessageBaseTask
(
Task
):
ignore_result
=
True
routing_key
=
ROUTING_KEY
class
ScheduleRecurringNudge
(
ScheduleMessageBaseTask
):
def
run
(
self
,
site_id
,
target_day_str
,
day_offset
,
bin_num
,
org_list
,
exclude_orgs
=
False
,
override_recipient_email
=
None
,
):
...
...
@@ -84,10 +85,7 @@ class ScheduleRecurringNudge(Task):
)
class
ScheduleUpgradeReminder
(
Task
):
ignore_result
=
True
routing_key
=
ROUTING_KEY
class
ScheduleUpgradeReminder
(
ScheduleMessageBaseTask
):
def
run
(
self
,
site_id
,
target_day_str
,
day_offset
,
bin_num
,
org_list
,
exclude_orgs
=
False
,
override_recipient_email
=
None
,
):
...
...
@@ -112,10 +110,7 @@ def _upgrade_reminder_schedule_send(site_id, msg_str):
ace
.
send
(
msg
)
class
ScheduleCourseUpdate
(
Task
):
ignore_result
=
True
routing_key
=
ROUTING_KEY
class
ScheduleCourseUpdate
(
ScheduleMessageBaseTask
):
def
run
(
self
,
site_id
,
target_day_str
,
day_offset
,
bin_num
,
org_list
,
exclude_orgs
=
False
,
override_recipient_email
=
None
,
):
...
...
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