gyselroth / tubee

Data management engine with synchronization support
GNU General Public License v3.0
4 stars 4 forks source link

last_sync/last_successful_sync have an old timestamp #53

Closed raffis closed 5 years ago

raffis commented 5 years ago

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.