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

Fix rake task when using arguments #12

Merged
merged 1 commit into from
Jun 8, 2022
Merged

Conversation

tomas-stefano
Copy link
Contributor

@tomas-stefano tomas-stefano commented Jun 6, 2022

When using batch size or sleep time from load entities (bundle exec rails dfe:analytics:import_entity[ModelName,1,1,1] rake task it raises the exception:

String can't be coerced into Integer

(Refer to
https://ukgovernmentdfe.slack.com/archives/CN1MCQCHZ/p1654509372363969)

By converting the values we guarantee that it will work as expected.

When using batch size or sleep time from rake task it raises the
exception:

String can't be coerced into Integer

(Refer to
 https://ukgovernmentdfe.slack.com/archives/CN1MCQCHZ/p1654509372363969)

By converting the values we guarantee that it will work as expected.
@tomas-stefano tomas-stefano merged commit d29fd97 into main Jun 8, 2022
@tomas-stefano tomas-stefano deleted the fix-load-entities-task branch June 8, 2022 08:10
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.

3 participants