Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
c8726995
Commit
c8726995
authored
4 years ago
by
Jeff LaJoie
Browse files
Options
Downloads
Patches
Plain Diff
Changes type of objects that get serialized, removes a problematic log statement
parent
d04f2735
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openedx/core/djangoapps/schedules/resolvers.py
+0
-5
0 additions, 5 deletions
openedx/core/djangoapps/schedules/resolvers.py
openedx/core/djangoapps/schedules/tasks.py
+3
-3
3 additions, 3 deletions
openedx/core/djangoapps/schedules/tasks.py
with
3 additions
and
8 deletions
openedx/core/djangoapps/schedules/resolvers.py
+
0
−
5
View file @
c8726995
...
...
@@ -434,11 +434,6 @@ class CourseNextSectionUpdate(PrefixedDebugLoggerMixin, RecipientResolver):
def
send
(
self
):
schedules
=
self
.
get_schedules
()
LOG
.
info
(
u
'
Found {} emails to send for course-key: {}
'
.
format
(
len
(
schedules
),
self
.
course_key
)
)
for
(
user
,
language
,
context
,
is_self_paced
)
in
schedules
:
msg_type
=
CourseUpdate
()
if
is_self_paced
else
InstructorLedCourseUpdate
()
msg_type
.
personalize
(
...
...
This diff is collapsed.
Click to expand it.
openedx/core/djangoapps/schedules/tasks.py
+
3
−
3
View file @
c8726995
...
...
@@ -213,17 +213,17 @@ class ScheduleCourseNextSectionUpdate(ScheduleMessageBaseTask):
@classmethod
def
enqueue
(
cls
,
site
,
current_date
,
day_offset
,
override_recipient_email
=
None
):
target_date
=
(
current_date
-
datetime
.
timedelta
(
days
=
day_offset
))
.
date
()
target_date
time
=
(
current_date
-
datetime
.
timedelta
(
days
=
day_offset
))
if
not
cls
.
is_enqueue_enabled
(
site
):
cls
.
log_info
(
u
'
Message queuing disabled for site %s
'
,
site
.
domain
)
return
cls
.
log_info
(
u
'
Target date = %s
'
,
target_date
.
isoformat
())
cls
.
log_info
(
u
'
Target date = %s
'
,
target_date
time
.
date
()
.
isoformat
())
for
course_key
in
CourseOverview
.
get_all_course_keys
():
task_args
=
(
site
.
id
,
serialize
(
target_date
),
serialize
(
target_date
time
),
# Need to leave as a datetime for serialization purposes here
course_key
,
override_recipient_email
,
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment