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

Scheduler /queue and worker #266

Open
butonic opened this issue Sep 20, 2019 · 0 comments
Open

Scheduler /queue and worker #266

butonic opened this issue Sep 20, 2019 · 0 comments

Comments

@butonic
Copy link
Contributor

butonic commented Sep 20, 2019

Discussing chunked upload with @labkode we iterated over the concept of a scheduler to handle asynchronous tasks.

When the last cunk of a file has ben added an assemble task is added to a queue. A worker willl take the task, assemble the file and produce the final metadata in the storage.

We can use the queue to implement metadata (etag and mtime) propagation fkr storages that do not support it natively (all but eos and another owncloud mounted via webdav).

But we need to clarify how to deal with worker crashes. One possibility is to not only push an event/task to the queue but also create an event/task file on disk. The worker can modify the event and even move them to an activity log. The activity log is tightly related. We want to be able to show the list of activities for a user. We could use these events on disk for persistency. Any crashed worker can just be restarted and his task can be readded.

in any case we want to keep the queue implementation simple. It will crash. It is more important to be able to aggregate events and be resilient.

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

No branches or pull requests

1 participant