Using dynamic datetime with seconds in path, sometimes, disable the possibility to download the generated file from the interface.
When getPath is called by the FileWriter and then later by the FileWriterArchiver, the returned path can be different, because the timestamp may have changed.
Would a possible solution be to use $this->stepExecution->getJobExecution()->getStartTime()->format($this->datetimeFormat) (cached internally by the class of course)?
https://github.com/akeneo/pim-community-dev/blob/ecb3898f5860b47f068fe9166476673fab5f8210/src/Pim/Component/Connector/Writer/File/AbstractFileWriter.php#L47
Using dynamic datetime with seconds in path, sometimes, disable the possibility to download the generated file from the interface.
When getPath is called by the FileWriter and then later by the FileWriterArchiver, the returned path can be different, because the timestamp may have changed.