question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recursively large parameters

See original GitHub issue

This is recursion.

https://github.com/m3dev/gokart/blob/master/gokart/task.py#L285-L303

self.to_str_params(only_significant=True) append the result of the json serialization of the parameter. As a result of repeated json serialization, we have the following in dependencies.

dependencies.append(self.to_str_params(only_significant=True))

\“params\”: {\“target\”: \“{\\\“type\\\”: \\\“task.Aggregation\\\”, \\\“params\\\”: {\\\“train\\\”: \\\”{\\\\\\\“type\\\\\\\”: \\\\\\\“task.Sample\\\\\\\”, \\\\\\\“params\\\\\\\”: {\\\\\\\“target\\\\\\\”: \\\\\\\“{\\\\\\\\\\\\\\\“type\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\“task.Query\\\\\\\\\\\\\\\”, \\\\\\\\\\\\\\\“params\\\\\\\\\\\\\\\”: {\\\\\\\\\\\\\\\“target\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\”{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“type\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“task.Add\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“params\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“target\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“type\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“task.Drop\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”,

Gokart use a lot of memory when long pipeline. And the job is starting very slowly.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
vaaaaanquishcommented, Nov 5, 2021

[future] Caching TaskInstanceParameter.serialize input can speed up the process.

1reaction
vaaaaanquishcommented, Nov 5, 2021

https://github.com/m3dev/gokart/pull/257 will solve the problem of bloated memory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c++ - Will many parameters in a recursive function cause ...
The process during recursion is: Allocate space for parameters on the stack. Usually subtracting a value from the stack pointer register.
Read more >
How useful is a recursive formula with too many parameters?
Before this problem, I have never encountered recurrence relations where the number of parameters depends on the size of the input, namely n....
Read more >
Recurison
Recursion is a general problem solving technique. It is very precise. Most freshmen students find it very hard to understand, track and master....
Read more >
Methods for recursive robust estimation of AR parameters
K. Sejling et al. / Recursive robust estimation of AR parameters. RMO, a modification of the RLS algorithm in which large prediction errors,....
Read more >
Recursive tasks · Issue #2465 · PrefectHQ/prefect - GitHub
So then I imagine the get_files_task would return (folders: List, files: List) and the .recurse would see the endpoint parameter as non- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found