Signal Method Concurrency

If I have a signal method in a workflow, and that signal method is called twice for the same executing workflow, will the 2nd call wait for the first signal method to finish, before starting execution, given that the signal method contains a long running code.

hi @YASMOABD

they can be processed concurrently, in different threads.

If you need to process the signals secuentially you can create a list where you add the signals

and process the signals one-by-one in your workflow code https://github.com/temporalio/samples-java/blob/4d6427dbd7bbc23e22cbf1bbcbcc04d3913c27e9/core/src/main/java/io/temporal/samples/hello/HelloSignal.java#L89

given that the signal method contains a long running code.

Does this involve executing activities or other operations, or is it just workflow code?

Antonio