Skip to content

Pass JobController object to task definition #666

@hussainfyz

Description

@hussainfyz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions