Add random string to the workflow id
This commit is contained in:
@@ -111,7 +111,7 @@ func (w *Workflow) Execute(ctx context.Context, payload map[string]any) error {
|
||||
|
||||
func (w *Workflow) GenerateId() string {
|
||||
now := time.Now()
|
||||
return w.Identifier + "_" + now.Format("20060102150405")
|
||||
return w.Identifier + "_" + now.Format("20060102150405") + "_" + ersteller.RandomString(5)
|
||||
}
|
||||
|
||||
func NewCronTrigger(ctx context.Context, workflow *Workflow, d time.Duration) {
|
||||
|
||||
Reference in New Issue
Block a user