apache / shardingsphere-elasticjob

Distributed scheduled job
Apache License 2.0
8.15k stars 3.29k forks source link

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

Open ooooooook opened 2 months ago

ooooooook commented 2 months ago

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 commented 2 months ago

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

linghengqian commented 2 months ago