Skip to content

Newbie question: timeout flag #254

Answered by mschubert
rimorob asked this question in Q&A
Discussion options

You must be logged in to vote

It seems you created a custom template with a {{ timeout }} field that does not have a default value.

So, in order to be able to submit the job we need to fill this field. However, the timeout parameter to Q does something different (it is the time when we will assume a worker to be dead if we haven't heard from it) and it is not passed to your template.

So to solve this, you can pass it as a template argument:

Q(..., template=list(timeout=...))
register_dopar_cmq(..., template=list(timeout=...))

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mschubert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #209 on March 29, 2021 20:24.