DeadlinePlugin.GetStartFrame (and GetEndFrame) are returning -1

The Deadline Monitor GUI shows my frame range as ‘7’ and the ReST API for my task returns:
“Frames”: “7-7”

But - when I call DeadlinePlugin.GetStartFrame() I get -1
Same for DeadlinePlugin.GetEndFrame()

I’m calling these methods in my subclass of DeadlinePlugin, which is an Advanced plugin.

Am I using this feature incorrectly?

It seems that the method provides this incorrect result for a while, and then just a second later starts providing the correct result.

Similarly the GetCurrentTaskId method seems to return None for a while, and then eventually starts to return the correct value. I’m not sure if there is some event that occurs that can tell me when those values should be available.

These values are not available in the StartJobCallback - they don’t become properly instantiated until the RenderTasksCallback runs.