The Python API doc about workflow.start_activity mentions that the activity_id argument “is an advanced setting that should not be set unless users are sure they need to. Contact Temporal before setting this value.”
How do I set this value properly? I understand that there are probably some sort of uniqueness requirements, but which one of the following is true?
- Activity IDs must be unique across all namespaces
- Activity IDs must be unique across all workflow executions within current namespaces
- Activity IDs must be unique across all workflow executions of the current workflow type
- Activity IDs must be unique within the current workflow execution
Besides uniqueness, are there any other requirements?
I asked because multiple activities within the same workflow execution might use same activity type. Setting activity IDs manually give me visual cues about each activity, especially when viewing from Temporal UI.