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
81ef933d
Commit
81ef933d
authored
Jun 01, 2017
by
Eric Fischer
Committed by
GitHub
Jun 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15221 from edx/efischer/celery_logging
More celery logging
parents
44578564
b69adbfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/instructor_task/tasks_base.py
+2
-2
No files found.
lms/djangoapps/instructor_task/tasks_base.py
View file @
81ef933d
...
@@ -48,7 +48,7 @@ class BaseInstructorTask(Task):
...
@@ -48,7 +48,7 @@ class BaseInstructorTask(Task):
This is JSON-serialized and stored in the task_output column of the InstructorTask entry.
This is JSON-serialized and stored in the task_output column of the InstructorTask entry.
"""
"""
TASK_LOG
.
debug
(
'Task
%
s: success returned with progress:
%
s'
,
task_id
,
task_progress
)
TASK_LOG
.
info
(
'Task
%
s: success returned with progress:
%
s'
,
task_id
,
task_progress
)
# We should be able to find the InstructorTask object to update
# We should be able to find the InstructorTask object to update
# based on the task_id here, without having to dig into the
# based on the task_id here, without having to dig into the
# original args to the task. On the other hand, the entry_id
# original args to the task. On the other hand, the entry_id
...
@@ -81,7 +81,7 @@ class BaseInstructorTask(Task):
...
@@ -81,7 +81,7 @@ class BaseInstructorTask(Task):
Note that there is no way to record progress made within the task (e.g. attempted,
Note that there is no way to record progress made within the task (e.g. attempted,
succeeded, etc.) when such failures occur.
succeeded, etc.) when such failures occur.
"""
"""
TASK_LOG
.
debug
(
u'Task
%
s: failure returned'
,
task_id
)
TASK_LOG
.
info
(
u'Task
%
s: failure returned'
,
task_id
)
entry_id
=
args
[
0
]
entry_id
=
args
[
0
]
try
:
try
:
entry
=
InstructorTask
.
objects
.
get
(
pk
=
entry_id
)
entry
=
InstructorTask
.
objects
.
get
(
pk
=
entry_id
)
...
...
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