Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-22524 .NET: Add JobDescriptor to Compute API #3954

Merged
merged 15 commits into from
Jun 19, 2024

Conversation

ptupitsyn
Copy link
Contributor

@ptupitsyn ptupitsyn commented Jun 19, 2024

Add JobDescriptor parameter object to Compute API.

Usage Examples

// Provide all details
var job = new JobDescriptor("org.apache.ignite.MyJob")
{
    Options = JobExecutionOptions.Default with
    {
        Priority = 999,
        MaxRetries = 66
    },
    DeploymentUnits = new DeploymentUnit[] { new("unit1", "1.0.0") }
};

await client.Compute.SubmitAsync<string>(nodes, job)

// Only job class name
await client.Compute.SubmitAsync<string>(nodes, new("org.apache.ignite.MyJob"))

// Job and units
await client.Compute.SubmitAsync<string>(nodes, new("org.apache.ignite.MyJob", units))

@ptupitsyn ptupitsyn self-assigned this Jun 19, 2024
@ptupitsyn ptupitsyn requested a review from isapego June 19, 2024 12:17
@ptupitsyn ptupitsyn merged commit f7b371d into apache:main Jun 19, 2024
1 check passed
@ptupitsyn ptupitsyn deleted the ignite-22524 branch June 19, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants