Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add background daemon #2006

Merged
merged 33 commits into from
May 8, 2024
Merged

feat: add background daemon #2006

merged 33 commits into from
May 8, 2024

Conversation

ellie
Copy link
Member

@ellie ellie commented May 7, 2024

This will allow for several things

  1. Automatic sync, not driven by shell usage
  2. Keep database writes out of the hot path, which becomes an issue with certain filesystems
  3. Allows us more flexibility
  4. Potential for fully realtime sync

The downsides are that this is significantly more complexity. I've intentionally not included an automatic daemon start/stop here, and kept it opt-in. It will likely remain that way for a while.

I've also added a daemon feature. This allows you to compile atuin without this functionality on platforms that are not unix.

I've removed Windows from CI (for now...), as I cannot test or support it at this time. It should still build with the correct set of features. It also makes CI slow :(

Checks

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

@atuin-bot
Copy link

This pull request has been mentioned on Atuin Community. There might be relevant details there:

https://forum.atuin.sh/t/moving-atuin-to-a-daemon/78/24

@ellie ellie merged commit bce0faa into main May 8, 2024
14 checks passed
@ellie ellie deleted the ellie/daemon branch May 8, 2024 11:09
@ellie ellie mentioned this pull request May 8, 2024
2 tasks
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.

None yet

2 participants