average-vr-56795
10/17/2019, 10:09 AMscheduler_create
now takes 50 arguments, which is not great. Some of these don’t express the expressiveness of their types in either language (e.g. we’re representing “no value” for strings as the empty string)
There’s a bunch of boilerplate associated with passing them down
They’re generally all global args, ungrouped by something like a subsystem, and most of which restart the daemon, only because we happen to use them when constructing the Core
(where some of them could be better scoped and exist on Session
- that’s an easy change for us to make if we want, though)
Does anyone have any thoughts on how we could rationalise this a bit?witty-crayon-22786
10/17/2019, 2:27 PMwitty-crayon-22786
10/17/2019, 2:27 PMenough-analyst-54434
10/17/2019, 4:50 PMenough-analyst-54434
10/17/2019, 4:51 PMhundreds-breakfast-49010
10/17/2019, 6:48 PMhundreds-breakfast-49010
10/17/2019, 6:49 PMhundreds-breakfast-49010
10/17/2019, 6:49 PMhundreds-breakfast-49010
10/17/2019, 6:50 PMconstruct_
arguments, as far as I can tell, are created on the python side the same way as type_
arguments - you pass the same class name and treat it either as a constructor function or as the name of a typehundreds-breakfast-49010
10/17/2019, 6:51 PMscheduler_create
enough-analyst-54434
10/17/2019, 6:51 PMwitty-crayon-22786
10/17/2019, 6:52 PMwitty-crayon-22786
10/17/2019, 6:52 PMenough-analyst-54434
10/17/2019, 6:53 PMwitty-crayon-22786
10/17/2019, 6:53 PMwitty-crayon-22786
10/17/2019, 6:54 PMwitty-crayon-22786
10/17/2019, 6:54 PMValue
passed over is that it aligns with how we do our other python object interactionwitty-crayon-22786
10/17/2019, 6:55 PMenough-analyst-54434
10/17/2019, 6:55 PMwitty-crayon-22786
10/17/2019, 6:55 PMhundreds-breakfast-49010
10/17/2019, 6:56 PMcreate_scheduler
has a bunch of arguments that are passing type handles around, and also a bunch of other arguments for passing options aroundwitty-crayon-22786
10/17/2019, 6:56 PMhundreds-breakfast-49010
10/17/2019, 6:56 PMwitty-crayon-22786
10/17/2019, 6:57 PMhundreds-breakfast-49010
10/17/2019, 6:57 PMwitty-crayon-22786
10/17/2019, 6:58 PMhundreds-breakfast-49010
10/23/2019, 6:32 PM