Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Skip input serialization for local activities when doNotIncludeArgumentsIntoMarker is set

Open
#3,124 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
backend

Research direction

Start in SyncWorkflowContext.executeLocalActivity, which the issue identifies as serializing arguments before checking replay state; trace how doNotIncludeArgumentsIntoMarker affects marker creation and how local activities receive deserialized inputs. Check the relevant local-activity tests and add coverage for the option, including replay. Done means arguments bypass serialization and deserialization when they are not recorded in the marker, without changing marker or replay behavior.

Written by the indexing model from the issue text.

Description

enhancement

When user sets LocalActivityOptions.setDoNotIncludeArgumentsIntoMarker(true)
local activity arguments (inputs) are not written to event history. However they are still serialized and deserialized even tho they run in same process. Arguments are serialized always, including during replay. Deserialized when local activity runs.

SyncWorkflowContext.executeLocalActivity serializes the arguments as its first thing, before check if workflow is replaying.

doNotIncludeArgumentsIntoMarker controls only if serialized arguments end up in marker event, not if serialization happens or not

Why it matter:
this extra serialization / deserialization can create cpu cost when running payload encryption

Ask:
When local activity arguments are not written to marker event, pass them to local activity directly instead of serializing and deserializing them.

Dominant language
Java
Stars
433
Forks
257
Avg merge
2d 22h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temporalio/sdk-java

All issues in temporalio/sdk-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.