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

[QOLDEV-490] fix timeout extension #55

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

ThrawnCA
Copy link

@ThrawnCA ThrawnCA commented Aug 6, 2023

  • Can't multiply a string by 3, we get repeated text instead of arithmetic multiplication

- Can't multiply a string by 3, we get repeated text instead of arithmetic multiplication
- Missed a 'not' when checking if datastore exists
timeout = timeout * 3
# Expand timeout for resources that have to be type-guessed
timeout = config.get(
'ckanext.xloader.job_timeout',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't python to int before multiply?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible, yes. On the other hand, if the timeout has been explicitly set, we maybe shouldn't change it.

@ThrawnCA ThrawnCA merged commit 340778b into develop Aug 7, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants