Closed raffis closed 5 years ago
After syncing an object the timestamps have an older value.
The bug occurs while the timestamp is initialized in the constructor https://github.com/gyselroth/tubee/blob/master/src/lib/Async/Sync.php#L109 and \Taskscheduler fetches Tubee\Async\Sync from the tubee PSR-11 container while that service is declared as a singleton (micro-container).
Sync single object, the wont get the current timestamp.
Set timestamp from current process.
Add any other context about the problem here.
Describe the bug
After syncing an object the timestamps have an older value.
The bug occurs while the timestamp is initialized in the constructor https://github.com/gyselroth/tubee/blob/master/src/lib/Async/Sync.php#L109 and \Taskscheduler fetches Tubee\Async\Sync from the tubee PSR-11 container while that service is declared as a singleton (micro-container).
To Reproduce
Sync single object, the wont get the current timestamp.
Expected behavior
Set timestamp from current process.
Environment
Additional context
Add any other context about the problem here.