m3dev/kannon

[Proposal] Use pickle instead of using serialized parameter

kitagry opened this issue · 1 comments

Instead of serializing TaskParameter, how about making the task itself pickle to execute? I am thinking of the following execution procedure.

  1. Make the task into a pickle and save it in gokart's cache space. (Currently, the cache space should be shared between master and child jobs.)
  2. Specify the path to the pickle file in job's args and call it.

This should solve the following problems.

  • The parameters to serialize are accurate.
  • The task itself does not need to be imported by a child job.

Thanks for a great proposal!
I will work on it soon after #5