Skip to content

Conversation

abeglova
Copy link
Contributor

@abeglova abeglova commented Oct 8, 2025

What are the relevant tickets?

https://github.com/mitodl/hq/issues/8877

Description (What does it do?)

This pr fixes a bug that causes the pdf to markdown job for canvas problem files to be run unnecessarily when the files have not changed

It also prevents tika from being run for files whose content is set by the pdf to markdown job.

How can this be tested?

From the shell run

from learning_resources.tasks import sync_canvas_courses
sync_canvas_courses(['14566'], False)

you might see some messages from LiteLLM:
LiteLLM completion() model= gpt-4o; provider = openai

Run

sync_canvas_courses(['14566'], False)

again. You should not see more messages from LiteLLM

@abeglova abeglova changed the title commit fix canvas contentfile import Oct 10, 2025
@abeglova abeglova changed the title fix canvas contentfile import fix canvas problem file import Oct 10, 2025
@abeglova abeglova marked this pull request as ready for review October 10, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant