DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| ID | IEP-136 | ||||||||||
| Author | |||||||||||
| Sponsor | |||||||||||
| Created |
| ||||||||||
| Status |
|
| Table of Contents |
|---|
...
| Code Block | ||
|---|---|---|
| ||
public interface IComputeJob<TArg, TResult>
{
IMarshaller<TArg>? InputMarshaller => null;
IMarshaller<TResult>? ResultMarshaller => null;
ValueTask<TResult> ExecuteAsync(IJobExecutionContext context, TArg arg, CancellationToken cancellationToken);
}
public interface IJobExecutionContext
{
IIgnite Ignite { get; }
bool Cancelled { get; }
} |
Example job implementation:
| Code Block | ||
|---|---|---|
| ||
public class ToStringJob : IComputeJob<object?, string?>
{
public async ValueTask<string?> ExecuteAsync(IJobExecutionContext context, object? arg, CancellationToken cancellationToken)
{
await context.Ignite.Tables.GetTablesAsync();
return arg?.ToString();
}
} |
...
COMPUTE_JOB_EXECCOMPUTE_JOB_CANCELDEPLOYMENT_UNIT_UNDEPLOY...
None. Client protocol change will be handled via feature flag, preserving backwards and forwards compatibility.
...
...