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

Resume-from-failed functionality #174

Open
rusq opened this issue Dec 7, 2022 · 5 comments
Open

Resume-from-failed functionality #174

rusq opened this issue Dec 7, 2022 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@rusq
Copy link
Owner

rusq commented Dec 7, 2022

  After 17GB of export, my slackdump process died with a 500 response from Slack.  I'd love to be able to start again where it left off.  It was a 500 error, so hopefully it was resolved on their end (and not due to bad data etc). 
2022/12/06 21:32:28 application error: export error: channels: error: failed to dump "dataeng-alerts-high" (CM0BW29LZ): callback error: failed to dump channel:thread CM0BW29LZ:1575031520.121400: slack server error: 500 Internal Server Error

Being able to resume where it died would be huge for someone trying to get a complete workspace export. And it's probably as easy as enumerating everything (into a file) on process start, and removing lines from the file as tasks get completed. On start up, it can see if this file already exists and start with the next line as the first task.

Thoughts?

edit: Thinking about it a bit more - an "if this file already exists, skip it" check before exporting a channel/thread/file might help speed things up dramatically and accomplish almost the same thing. Hmm

Originally posted by @jjcovert in #172

@rusq rusq added the enhancement New feature or request label Dec 22, 2022
@rusq rusq added this to the v3.0.1 milestone Jan 22, 2023
@rusq rusq added the bug Something isn't working label Jan 29, 2023
@rusq rusq removed the bug Something isn't working label Feb 18, 2023
@rusq
Copy link
Owner Author

rusq commented Feb 25, 2023

Another usecase for stored state:
#193

@G-Harmon
Copy link

G-Harmon commented Apr 13, 2023

I'd use the #205 case as well.

@rusq
Copy link
Owner Author

rusq commented Apr 13, 2023

Hey @G-Harmon, yeah, I'm planning to combine those two in v3.

I haven't decided on the CLI flags yet, but the general idea is the following:

  1. once the "resume" or "continue" flag is given along with the existing ZIP archive or directory; do
  2. If the directory is empty - STOP
  3. Detect the type
  4. Read the existing files and detect the latest message time for each of the channels
  5. Start processing each channel from the respective timestamp.

Meanwhile, you could check the shell script that levygroker has contributed recently: https://github.com/rusq/slackdump/tree/master/contrib/incremental_backup
(You can read the whole conversation in #193 )

@2naive
Copy link

2naive commented Dec 17, 2023

It's been 3 days that I was trying to export the workspace.
Single disconnect.
And you start it over :pain:

@rusq
Copy link
Owner Author

rusq commented Jan 6, 2024

Hey @2naive, sorry to hear that. When you say "disconnect" do you mean unstable connection, or slack server error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants