Skip to content

fix(sync): save sync time when it starts, not ends#1573

Merged
ellie merged 1 commit intomainfrom
ellie/reorder-sync
Jan 15, 2024
Merged

fix(sync): save sync time when it starts, not ends#1573
ellie merged 1 commit intomainfrom
ellie/reorder-sync

Conversation

@ellie
Copy link
Member

@ellie ellie commented Jan 15, 2024

Imagine the scenario where a sync fails. The function touched here will never save the sync time.

That means that external to this function, the sync never happened. The next command will try and start one immediately.

The happy scenario is that this succeeds. The unhappy scenario is that this fails. Fails, and isn't saved, so we try again...

Should add proper backoff but this is a good start.

Imagine the scenario where a sync fails. The function touched here will
never save the sync time.

That means that external to this function, the sync never happened. The
next command will try and start one immediately.

The happy scenario is that this succeeds. The unhappy scenario is that
this fails. Fails, and isn't saved, so we try again...

Should add proper backoff but this is a good start.
@vercel
Copy link

vercel bot commented Jan 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atuin-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2024 1:05pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant