cterasdk.core.taskmgr module

cterasdk.core.taskmgr module#

class cterasdk.core.taskmgr.Task(CTERAHost, ref, retries=10, seconds=1)#

Bases: TaskBase

get_task_status()#
class cterasdk.core.taskmgr.Tasks(portal)#

Bases: BaseCommand

Portal Background Task APIs

status(ref)#

Get background task status

Parameters:

ref (str) – Task reference

wait(ref, retries=100, seconds=1)#

Wait for background task to complete

Parameters:
  • ref (str) – Task reference

  • retries (int,optional) – Number of retries when sampling the task status, defaults to 100

  • seconds (int,optional) – Number of seconds to wait between retries, defaults to 1