backoffSupplier configuration

Hi All,

I have multiple jobWorker and using @JobWorker to configure the worker specific usecase. Now, I want to configure the **backoffSupplier** for all the worker wherever required but I am not getting how to do?

@JobWorker have only below properties to use

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface JobWorker {
    String type() default "";

    String name() default "";

    long timeout() default -1L;

    int maxJobsActive() default -1;

    long requestTimeout() default -1L;

    long pollInterval() default -1L;

    String[] fetchVariables() default {};

    boolean fetchAllVariables() default false;

    boolean autoComplete() default true;

    boolean enabled() default true;
}

TIA.

Hi @yadav1990 - the Spring Zeebe package doesn’t yet support configuring a backoff supplier with the annotation; see here: Support Retry with Backoff · Issue #251 · camunda-community-hub/spring-zeebe · GitHub - as noted in the last comment, the workaround is to use the job client.

1 Like