Skip to content

[NOTE] Workers #28

@derhofbauer

Description

@derhofbauer
  • 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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions