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

Question about the 'labels' property of JobInstance object #2443

Open
ooooooook opened this issue Sep 30, 2024 · 2 comments
Open

Question about the 'labels' property of JobInstance object #2443

ooooooook opened this issue Sep 30, 2024 · 2 comments

Comments

@ooooooook
Copy link
Contributor

Question

For English only, other languages will not accept.

Before asking a question, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.


I have a question regarding the 'labels' property of the JobInstance object. What is its purpose? I cannot find any instances where this 'labels' property is being set or retrieved (get/set). Could someone please provide some clarity on this?

Thank you!

I can get the labels property, but it is always null.
image

This property was not set when the program started.
image

Maven dependency:

          <dependency>
              <groupId>org.apache.shardingsphere.elasticjob</groupId>
              <artifactId>elasticjob-spring-boot-starter</artifactId>
              <version>3.1.0-SNAPSHOT</version>
          </dependency>
@ooooooook
Copy link
Contributor Author

If the labels property is passed from a configuration file, I can submit a PR to fix this issue.

@linghengqian
Copy link
Member

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

No branches or pull requests

3 participants