Skip to content

Tasks

flowtask.services.tasks

Tasks.

Task-based management, creation and execution of tasks.

TaskLauncher

Bases: BaseView

post async

post()

POST Method. description: Executing a Task tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was updated or executed. "201": description: New Task was inserted "202": description: Task was accepted to run "400": description: Task Failed to execute "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

TaskManager

Bases: BaseView

TaskManager.

description: API Endpoint for Task Management (creation of Tasks).

delete async

delete()

DELETE Method. description: remove resource. tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

get async

get()
GET Method.

description: get all tasks, or a task by ID (or get status of execution) tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was retrieved. "403": description: Forbidden Call "404": description: No Task(s) were found "406": description: Query Error

patch async

patch()

PATCH Method. description: updating partially info about a Task tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "304": description: Task not modified, its currently the actual version of Task "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

post async

post()

PATCH Method. description: updating or creating tasks tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "304": description: Task not modified, its currently the actual version of Task "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

put async

put()

PUT Method. description: Send a Task as Code directly to Task Executor. tags: - tasks - DataIntegration produces: - application/json consumes: - application/merge-patch+json - application/json responses: "200": description: Task Executed "204": description: success execution but no content on return (resource was deleted) "400": description: Invalid resource according data schema "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

TaskService

Bases: BaseView

TaskService.

Task As a Service: launch data-based tasks and returning the resultset in useful formats. Args: BaseView (type): description

get async

get()

GET Method. description: Executing a Task and returning the result tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was executed. "202": description: Task was accepted to queue (no return) "204": description: No data was found "400": description: Task Failed to execute "403": description: Forbidden Call "404": description: no Task was found. "406": description: Query Error "409": description: Task Conflict, a constraint was violated

post async

post()

GET Method. description: Executing a Task and returning the result tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was executed. "202": description: Task was accepted to queue (no return) "204": description: No data was found "400": description: Task Failed to execute "403": description: Forbidden Call "404": description: no Task was found. "406": description: Query Error "409": description: Task Conflict, a constraint was violated

launch_task async

launch_task(program_slug, task_id, loop=None, task_uuid=None, queued=False, no_worker=False, priority='low', userid=None, **kwargs)

launch_task. Runs (or queued) a Task from Task Monitor.

launcher

TaskService.

Work with managing tasks, creation, deleting, listing, etc.

TaskLauncher

Bases: BaseView

post async
post()

POST Method. description: Executing a Task tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was updated or executed. "201": description: New Task was inserted "202": description: Task was accepted to run "400": description: Task Failed to execute "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

manager

TaskManager.

Task Management: creation, deleting, listing, etc.

TaskManager

Bases: BaseView

TaskManager.

description: API Endpoint for Task Management (creation of Tasks).

delete async
delete()

DELETE Method. description: remove resource. tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

get async
get()
GET Method.

description: get all tasks, or a task by ID (or get status of execution) tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was retrieved. "403": description: Forbidden Call "404": description: No Task(s) were found "406": description: Query Error

patch async
patch()

PATCH Method. description: updating partially info about a Task tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "304": description: Task not modified, its currently the actual version of Task "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

post async
post()

PATCH Method. description: updating or creating tasks tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "304": description: Task not modified, its currently the actual version of Task "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

put async
put()

PUT Method. description: Send a Task as Code directly to Task Executor. tags: - tasks - DataIntegration produces: - application/json consumes: - application/merge-patch+json - application/json responses: "200": description: Task Executed "204": description: success execution but no content on return (resource was deleted) "400": description: Invalid resource according data schema "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

service

TaskService.

Service for running tasks.

TaskService

Bases: BaseView

TaskService.

Task As a Service: launch data-based tasks and returning the resultset in useful formats. Args: BaseView (type): description

get async
get()

GET Method. description: Executing a Task and returning the result tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was executed. "202": description: Task was accepted to queue (no return) "204": description: No data was found "400": description: Task Failed to execute "403": description: Forbidden Call "404": description: no Task was found. "406": description: Query Error "409": description: Task Conflict, a constraint was violated

post async
post()

GET Method. description: Executing a Task and returning the result tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was executed. "202": description: Task was accepted to queue (no return) "204": description: No data was found "400": description: Task Failed to execute "403": description: Forbidden Call "404": description: no Task was found. "406": description: Query Error "409": description: Task Conflict, a constraint was violated

task_manager

TaskManager.

Work with managing tasks, creation, deleting, listing, etc.

TaskManager

Bases: DataView

delete async
delete()

DELETE Method. description: remove resource. tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

get async
get()
GET Method.

description: get all tasks, or a task by ID (or get status of execution) tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was retrieved. "403": description: Forbidden Call "404": description: No Task(s) were found "406": description: Query Error

patch async
patch()

PATCH Method. description: updating partially info about a Task tags: - tasks - DataIntegration produces: - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "304": description: Task not modified, its currently the actual version of Task "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

post async
post()

POST Method. description: inserting or updating a Task or executing a Task tags: - tasks - DataIntegration consumes: - application/json produces: - application/json responses: "200": description: Existing Task was updated or executed. "201": description: New Task was inserted "202": description: Task was accepted to run "400": description: Task Failed to execute "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

put async
put()

PUT Method. description: inserting or updating a Task tags: - tasks - DataIntegration produces: - application/json consumes: - application/merge-patch+json - application/json responses: "200": description: Existing Task was updated. "201": description: New Task was inserted "204": description: success execution but no content on return (resource was deleted) "400": description: Invalid resource according data schema "403": description: Forbidden Call "404": description: No Data was found "406": description: Query Error "409": description: Conflict, a constraint was violated

tasks

launch_task async

launch_task(program_slug, task_id, loop=None, task_uuid=None, queued=False, no_worker=False, priority='low', userid=None, **kwargs)

launch_task. Runs (or queued) a Task from Task Monitor.