Preparing search index...
The search index is not available
@tarpit/schedule
@tarpit/schedule
TaskContext
Class TaskContext<T>
Type Parameters
T
=
{}
Hierarchy
TaskContext
Index
Constructors
constructor
Properties
_count
_custom_
data
_retry_
is_
set
_retry_
limit
execution
id
unit
Accessors
count
crontab
retry_
limit
Methods
get
incr
set
set_
retry_
limit
from
Constructors
Private
constructor
new
Task
Context
<
T
>
(
id
,
unit
,
execution
)
:
TaskContext
<
T
>
Type Parameters
T
=
{}
Parameters
id
:
string
unit
:
TaskUnit
execution
:
Dora
Returns
TaskContext
<
T
>
Properties
Private
_count
_count
:
number
= 0
Private
_custom_
data
_custom_
data
:
T
= ...
Private
_retry_
is_
set
_retry_
is_
set
:
boolean
= false
Private
_retry_
limit
_retry_
limit
:
number
= 0
Readonly
execution
execution
:
Dora
Readonly
id
id
:
string
Readonly
unit
unit
:
TaskUnit
Accessors
count
get
count
(
)
:
number
Returns
number
crontab
get
crontab
(
)
:
string
Returns
string
retry_
limit
get
retry_limit
(
)
:
number
Returns
number
Methods
get
get
<
M
>
(
key
)
:
T
[
M
]
Type Parameters
M
extends
string
|
number
|
symbol
Parameters
key
:
M
Returns
T
[
M
]
incr
incr
(
)
:
number
Returns
number
set
set
<
M
>
(
key
,
value
)
:
void
Type Parameters
M
extends
string
|
number
|
symbol
Parameters
key
:
M
value
:
T
[
M
]
Returns
void
set_
retry_
limit
set_
retry_
limit
(
value
)
:
void
Parameters
value
:
number
Returns
void
Static
from
from
<
R
>
(
bullet
)
:
TaskContext
<
R
>
Type Parameters
R
=
{}
Parameters
bullet
:
Bullet
Returns
TaskContext
<
R
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
src
services
schedule-hooks.ts
ScheduleHooks
schedule-inspector.ts
ScheduleInspector
builtin
task-context.ts
TaskContext
errors
task-crash.ts
TaskCrash
throw_task_crash
task-done.ts
TaskDone
mission_completed
task-error.ts
TaskError
TaskErrorDescription
task-ignore.ts
TaskIgnore
throw_task_ignore
task-retry.ts
TaskRetry
throw_task_retry
annotations
task.ts
Task
Task
tp-schedule.ts
TpSchedule
TpSchedule
schedule.module.ts
ScheduleModule
__types__.ts
TaskDesc
TaskOptions
TpScheduleOptions
Generated using
TypeDoc