ihmeuw-scicomp / jobmon

Other
3 stars 6 forks source link

Allow `create_tasks` to return single task in case no node_args are provided #64

Open davidshaw-uw opened 1 year ago

davidshaw-uw commented 1 year ago

https://github.com/ihmeuw-scicomp/jobmon/blob/605b8343b1c899def2cb7793bec79349f3032d11/jobmon_client/src/jobmon/client/task_template.py#L700-L707

A valid use case of task template is to create a single task with no parallelization, therefore node_args aren't strictly necessary. However, if TaskTemplate.create_tasks is called without node_args provided, an empty list is returned. This method should return a length 1 list instead.