question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resuming collection after interruption

See original GitHub issue

It should be possible to pick up where you left off, for a long running search - if you read the last request and use the pagination token. As far as i can tell, these pagination tokens don’t expire. Will try and see how long they last (in case they do). This could also be used to resume searches across months - if you run out of your monthly quota or something.

Ideally it will be a --resume option - with a @resumable decorator on the command line options that can read an existing file, and continue appending and paginating given an existing pagination token. The client code should already support this, so these changes are mostly in the command line tool.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
igorbrigadircommented, Jan 28, 2022

Yes, except there’s no way to add the next_token to twarc2 yet - i’ll have add that part in.

1reaction
igorbrigadircommented, Jan 28, 2022

is it a feature you are planning to add, or is it already possible to resume collections after interruptions?

Kinda both, it doesn’t exist in the command line twarc yet, but it’s possible to do this with the library, https://twittercommunity.com/t/pulling-a-large-data-set-with-twarc2-client/165685/6?u=igorbrigadir all you need is to extract a next_token and specify it as a parameter into the function and it should continue - but i need to double check that, and make sure that using old next_token values actually works like this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resuming after Interruption: Exploring the Roles of Spatial ...
The experiment reported uses a new paradigm in which, following an interruption, a person can be returned to a different task and/or a...
Read more >
Resuming a Dynamic Task Following Increasingly Long ...
One of the main theories of task interruption suggests that dynamic task resumption could depend on a reconstruction of the primary task context ......
Read more >
How to Resume a Download After a Lost Connection
1. Click the gear icon. · 2. Click "View Downloads" to open the Download Manager. · 3. Click on the "Resume" button next...
Read more >
How to restart/resume copydb() in mongodb after interruption?
The short answer is no, there is no built-in way to resume a copydb operation, it essentially requires/assumes 100% availability at both ...
Read more >
The Effect of Interruption Duration and Demand on Resuming ...
The time to resume task goals after an interruption varied depending on the ... collection, and the Arch Lab members for their many...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found