Ability to specify activity timeouts via annotation in Java SDK
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 32/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- java
- Bereich
- api, backend-api-design
Rechercherichtung
Beginne damit nachzuverfolgen, wie @ActivityInterface, @ActivityMethod, @MethodRetry, Activity-Stubs und WorkflowImplementationOptions derzeit das Retry- und Timeout-Verhalten festlegen. Vergleiche die Rangfolge auf Methoden- und Stub-Ebene und definiere und teste anschließend eine annotationsbasierte API, die Start-to-close- und Schedule-to-close-Timeouts ohne Zeichenketten für Activity-Namen unterstützt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Is your feature request related to a problem? Please describe.
In the Java SDK, you have an @ActivityInterface with multiple @ActivityMethods. The latter is the actual unit of execution. However, you specify retry and timeout options on the activity stub, which is based on the interface, so in order to have specific config for each activity you have to go out of your way and break up the interface into small pieces, which kinda defeats one of the nicest features of Temporal which is to just program your service as if it were native code. You can configure specific settings per method, but you have to use strings for activity names instead of strongly typed constructs, and still the activity-stub level config takes precedence.
Recently, I became aware of the @MethodRetry annotation, which is great, but it only allows you to specify retry options, not timeouts, so it falls short of addressing the basic issue.
Describe the solution you'd like
Either an additional set of parameters in @MethodRetry or a new annotation (e.g. @ActivityTimeouts) that allows me to specify activity timeouts (start-to-close and schedule-to-close) at the method level.
Describe alternatives you've considered
Specifying per-activity config using WorkflowImplementationOptions, but you have to use strings for activity names instead of strongly typed constructs, and still the activity-stub level config takes precedence.
Additional context
N/A.
- Vorherrschende Sprache
- Java
- Sterne
- 447
- Forks
- 278
- Ø Merge
- 3 T. 22 Std.
- Gemergte PRs (30 T.)
- 28
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus temporalio/sdk-java
-
Support the certificate with linebreak strings from env variableEvtl. vergeben @officialasishkumar hat das vor 22 Tagen übernommen. Offenenhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
temporalio/sdk-java#1825 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Spring Boot drops mainDataConverter when a non-root namespace is configuredEvtl. vergeben @yumingjs hat das vor 1 Tag übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 74/100
temporalio/sdk-java#3245 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Spring Boot ignores Ordered on TemporalOptionsCustomizer beansEvtl. vergeben @Quinn-With-Two-Ns hat das vor 2 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 30/100
temporalio/sdk-java#3244 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 38/100
temporalio/sdk-java#3238 · 7 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Fix graceful shutdown of the shared worker-command pollerEvtl. vergeben @yuandrew hat das vor 9 Tagen übernommen. Offensdk-java
temporalio/sdk-java#3234 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in temporalio/sdk-java
Ähnliche Issues
-
area-integrations
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
isXander/YetAnotherConfigLib#376 ·
-
? - Needs Triage bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
NVIDIA/cudf-spark-jni#5598 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
oracle/graalvm-reachability-metadata#12264 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[source-facebook-pages] post stream never returns attachments.media_typeEvtl. vergeben @v-k-data hat das heute übernommen. Offenarea/connectors needs-triage type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag