Skip to content

Conversation

@ravxz
Copy link
Contributor

@ravxz ravxz commented Dec 26, 2025

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@ptupitsyn ptupitsyn changed the title IGNITE-27341 Introduced task name for .Net compute tasks. IGNITE-27341 .ΝΕΤ: Introduce task name for compute tasks Dec 29, 2025
/// <typeparam name="TArg">Argument type.</typeparam>
/// <typeparam name="TJobRes">Type of job result.</typeparam>
/// <typeparam name="TRes">Type of final task result.</typeparam>
TRes Execute<TArg, TJobRes, TRes>(string taskName, IComputeTask<TArg, TJobRes, TRes> task, TArg taskArg);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is different from the Java API, which has only one execute method with a task name:

public <T, R> R execute(String taskName, @Nullable T arg)

Can you please explain the idea here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I referred to the methods ExecuteJavaTask() and ExecuteJavaTaskAsync() upon enhancing similar methods for .Net tasks invocation, since the new argument 'taskName' was present in all versions of java task call methods.

The initial idea was to promote task name from .Net task name to Java task. Then I introduced this argument to all .Net task call methods. May be the right place for this change is a different PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to change anything in .NET, especially in the public API. The ticket is about passing correct task name to system views, metrics, and logs. PlatformFullTask#taskName already contains what we need, and the fix in GridTaskProcessor should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants