Code monitors: make query errors non-retryable
Created by: camdencheek
If an error is returned while handling a worker task, it will attempt to retry it. However, we have a number of code monitors that exist right now that are invalid, and will now error because we have better up-front validation. This makes those errors non-retryable so they don't put jobs in a retry loop.
Test plan
Tested manually that code monitors with query failures go into "failed" state rather than "errored" state