You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can retry specific IDs using the ID_LIST environment variable like this:
$ ID_LIST=1,2,99,100 bundle exec my_script.rb
If you need to retry hundreds of thousands or millions of IDs this won't work because there are limits on the length of a command. On our servers the limit is 2621440 bytes = 2.5 megabytes (getconf ARG_MAX), which would be about 250k IDs if IDs are ~10 bytes long.
If ID_LIST (or another environment variable) caused scripterator to read from a file or redis then you could have an arbitrarily long list of IDs. Some examples of what it might look like:
#read IDs from redis list or set
$ ID_LIST=one_timer_script:blabla:retry bundle exec my_script.rb
#read first 100k IDs from redis list
$ ID_LIST=one_timer_script:blabla:retry START=1 END=100000 bundle exec my_script.rb
#read IDs from file
$ ID_LIST=/tmp/ids.txt bundle exec my_script.rb
The text was updated successfully, but these errors were encountered:
You can retry specific IDs using the ID_LIST environment variable like this:
$ ID_LIST=1,2,99,100 bundle exec my_script.rb
If you need to retry hundreds of thousands or millions of IDs this won't work because there are limits on the length of a command. On our servers the limit is 2621440 bytes = 2.5 megabytes (
getconf ARG_MAX
), which would be about 250k IDs if IDs are ~10 bytes long.If ID_LIST (or another environment variable) caused scripterator to read from a file or redis then you could have an arbitrarily long list of IDs. Some examples of what it might look like:
The text was updated successfully, but these errors were encountered: