In this question I have a gap-fill part with a custom JS script which runs after the built-in marking algorithm.
The wrapper around the JS script expects the original_result dictionary to contain a states property, but it doesn't when the marking script is first run, waiting for pre-submit tasks in the gaps to finish.
It should check for original_result.waiting_for_pre_submit, and just return if it's true.
In this question I have a gap-fill part with a custom JS script which runs after the built-in marking algorithm.
The wrapper around the JS script expects the
original_result
dictionary to contain astates
property, but it doesn't when the marking script is first run, waiting for pre-submit tasks in the gaps to finish.It should check for
original_result.waiting_for_pre_submit
, and just return if it's true.