Error encountered in Submit After Effects To Deadline when rendering a movie file

I am using Deadline for the purpose of rendering multiple mp4s in the background.
When I click the submit button from the Submit After Effects To Deadline window using the default values, I get the following error message.

Error : The task count of 21027 exceeds the global limit of 5000,
increase the frames per task for the job and try again.
(Deadline.Submission.DeadlineSubmissionException)

Perhaps setting the Frames Per Task parameter in the Submit After Effects To Deadline window to an extremely large number, such as 100000, would solve the problem.
However, if the rendering is of a movie file rather than a sequence image, shouldn’t it always be recognized as a single task?
And where do I edit in jsx or .py to make it behave that way?

Making your frames per task larger will indeed solve the issue. Likely the default is to have one frame per task, and your comp has 21027 frames in it.

But if you’ve already got the frames created and are assembling them into a video, I’d expect there to be only a single task - what does the AE Render Queue on the comp look like? I haven’t worked with AE enough to know what’s not set right.