AI perf: skip grading/training if workflow is already complete

Add API calls for checking workflow completeness
Skip grading/training tasks if the workflow is already complete.

[TIM-655](https://edx-wiki.atlassian.net/browse/TIM-655)

@stephensanchez Please review.