-
Notifications
You must be signed in to change notification settings - Fork 42
Description
when we define task using ZeebeTaskRouter, pass JobController object to the task definition. This will provide flexibility to developer to "canceljob" or "extendtimeout" of job or fail the job on some conditions.
Right now only pyzeebe.Job object is passed and it doesn't provide the greater control over job. Job object only provides information about the job.
Describe the solution you'd like
Pass JobController object to task definition.
Provide methods like updateJobTimeout, FaileJob(Already present).
This will allow user to extend the jobtimeout based on some conditions.
Describe alternatives you've considered
Right now we can Update jobtimeout using grpc calls not with JobController.
Additional context
GiveMore Flexibility to user to control the job by passing JobController.
JobController is being passed in exception handler of the task. not in task definition.