Skip to content

Commit

Permalink
Fix notification update in python code
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed Jan 16, 2024
1 parent 8118d67 commit 4ce4a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/android_app_plugin/kolibri_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def update(self, job, orm_job, state=None, **kwargs):
else:
progress = -1
total_progress = -1
TaskWorker.updateProgress(
Task.updateProgress(
orm_job.worker_extra,
status.title,
status.text,
progress,
Expand Down
3 changes: 0 additions & 3 deletions src/taskworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@

def main(job_request):
request_id, job_id, process_id, thread_id = job_request.split(",")
logger.info("Job request: {}".format(job_request))
logger.info(
"Starting Kolibri task worker, for job {} and request {}".format(
job_id, request_id
)
)

# Import this after we have initialized Kolibri
logger.info("Importing executor for job request: {}".format(job_request))
from kolibri.core.tasks.worker import execute_job # noqa: E402

logger.info("Executing job request: {}".format(job_request))
try:
execute_job(
str(job_id),
Expand Down

0 comments on commit 4ce4a69

Please sign in to comment.