Libraries v5.0.0
← Back to Website
All Versions
Preparing search index...
@cleverbrush/scheduler
defineJob
Function defineJob
defineJob
<
I
extends
JobSchema
,
P
extends
JobSchema
,
O
extends
JobSchema
>
(
options
:
Omit
<
Partial
<
RunPolicy
>
,
"retry"
>
&
{
retry
?:
Partial
<
RetryPolicy
>
;
}
&
{
input
:
I
;
name
:
string
;
output
:
O
;
progress
:
P
;
version
:
number
}
,
)
:
JobDefinition
<
I
,
P
,
O
>
Create a producer-safe definition, bindable to either execution mode.
Type Parameters
I
extends
JobSchema
P
extends
JobSchema
O
extends
JobSchema
Parameters
options
:
Omit
<
Partial
<
RunPolicy
>
,
"retry"
>
&
{
retry
?:
Partial
<
RetryPolicy
>
}
&
{
input
:
I
;
name
:
string
;
output
:
O
;
progress
:
P
;
version
:
number
;
}
Returns
JobDefinition
<
I
,
P
,
O
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
← Back to Website
All Versions
Libraries v5.0.0
Loading...
Create a producer-safe definition, bindable to either execution mode.