App builder action is returning 504 Gateway
When invoking a long-running action with --result, the CLI returns a 504 Gateway Timeout after ~60 seconds — even though the action continues running successfully in the background.
However, the unexpected behavior is that the CLI appears to automatically retry the invocation after each 504, resulting in multiple activations being created from a single invoke command. In my case, one command produced 3 concurrent activations all processing the same dataset simultaneously.
How can this issue be resolved ?