DescribeManagedTask (open)

Describes a managed task

Syntax

LOADLIB "mod::system/lib/tasks.whlib";

RECORD FUNCTION DescribeManagedTask(INTEGER taskid)

Parameters

INTEGER taskid

Id of the managed task

Return value

RECORD

Managed task info

creationdate

Creation date of the task

RECORD data

Task data

INTEGER failures

Number of failures

finished

Datetime when the task was marked as finished

STRING lasterrors

If not empty, errors the task returned

RECORD metadata

Metadata of this task

nextattempt

Next time the task will be run

DATETIME notbefore

Scheduled date after which the tasks can be executed

retval

Return value of the task

STRING stacktrace

HSON-encoded stack trace with errors

tasktype

Type of the task (format: modulename:tasktypename)