Magellol commented on issue #58310:
URL: https://github.com/apache/airflow/issues/58310#issuecomment-3602992694

   We've noticed on our end than doing something like this causes the DAG 
version to increment after a run has been triggered (when the dag processor 
runs again), but not if we keep forcing to parse the DAG multiple times in a 
row. Unclear why the difference.
   
   So essentially doing "parse, parse, parse" doesn't increment but "trigger 
run, parse, trigger run, parse" does.
   
   ```diff
   + import uuid
   
   take_snapshot = RdsCreateDbSnapshotOperator(
     task_id="take_rds_snapshot",
     db_type="instance",
     db_identifier="xxxx",
   -  db_snapshot_identifier=f"test",
   +  db_snapshot_identifier=f"test{uuid.uuid4()}",
   )
   ```
   
   Removing the uuid effectively prevent this increment from happening. Is 
there another way to create random strings which don't increment the DAG 
version everything it runs?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to