This change fixes a "panic on nil reference" in the job tracker handler.
The JobService can a return nil value when there are no jobs available to process (such as no historical data or daily only datatypes). The Tracker handler for NextJob failed to check for the nil case, which resulted in non-fatal panics. While the parser was resilient to these failures, the gardener should handle this case correctly.
Now, a client will receive an HTTP "Internal Server Error" for Next job requests that return nil. The parser remains resilient to this case.
This change fixes a "panic on nil reference" in the job tracker handler.
The
JobService
can a returnnil
value when there are no jobs available to process (such as no historical data or daily only datatypes). The Tracker handler forNextJob
failed to check for the nil case, which resulted in non-fatal panics. While the parser was resilient to these failures, the gardener should handle this case correctly.Now, a client will receive an HTTP "Internal Server Error" for Next job requests that return
nil
. The parser remains resilient to this case.This change is![Reviewable](https://reviewable.io/review_button.svg)