Skip to content

Reading files with uproot and xrootd: how to set timeout? #585

Answered by lgray
andreypz asked this question in Q&A
Discussion options

You must be logged in to vote

@andreypz It would be helpful to see how things are crashing in your case. It could be due to a variety of things beyond the timeout. Typically the lack of a timeout causes stalls and not crashes. In particular you should try telling run_uproot_job to skip bad files: https://github.com/lgray/hgg-coffea/blob/master/runner.py#L355.

To make a timeout really sticky you need to set it when the dask/parsl/etc worker job is started. If you are running with Dask you should add the timeouts via dask to the worker environment. You need to set XRD_REQUESTTIMEOUT and XRD_STREAMTIMEOUT to some reasonable values. For the local executors you can set the environment variables yourself or use the xrootdti…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@lgray
Comment options

@nsmith-
Comment options

@andrzejnovak
Comment options

@jpivarski
Comment options

@andreypz
Comment options

Answer selected by andreypz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants