[Nailgun] Move tasks creation code to task helpers.

Registered by Aleksey Kasatkin

DRY. We have a number of repeated code snippets where task object is created. This can be found in task.manager, handlers, plugin.manager. Let's move this code to task helpers.

Blueprint information

Status:
Not started
Approver:
Evgeniy L
Priority:
Low
Drafter:
Aleksey Kasatkin
Direction:
Needs approval
Assignee:
Fuel Python (Deprecated)
Definition:
Pending Approval
Series goal:
Accepted for future
Implementation:
Not started
Milestone target:
milestone icon next

Related branches

Sprints

Whiteboard

[eli] please, provide example. Or links on lines of code where we have such DRY problems.
[alekseyk-ru] I mean code chunks like this one:
            task = Task(name='check_networks', cluster=cluster)
            db().add(task)
            db().commit()
Such code chunks are found mostly in task.manager actually.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.