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

[NOTE] Workers #28

Open
derhofbauer opened this issue Mar 6, 2018 · 0 comments
Open

[NOTE] Workers #28

derhofbauer opened this issue Mar 6, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@derhofbauer
Copy link
Owner

derhofbauer commented Mar 6, 2018

  • FilesystemStorageWorker creates local file list and keeps it up to date, emmits events on changes
  • CloudStorageWorker creates Server file list and keeps it up to date, emmits events on changes; has a .go() method and provides a ready event that is emmitted when the initial file list download has finished, right before starting to longpoll. We bind the merge worker .go() method to it and then run the CloudStorageWorker.go() method. That way it's impossible that MergeWorker misses to start.
  • MergeWorker listens to both other workers events and decides what to do, queues these jobs for upload and download workers
@derhofbauer derhofbauer added this to the v1.0 milestone Mar 6, 2018
@derhofbauer derhofbauer self-assigned this Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant