File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -446,6 +446,7 @@ void StfBuilderDevice::PreRun()
446446 if (I ().mDiscoveryConfig ->enabled ()) {
447447 auto & lStatus = I ().mDiscoveryConfig ->status ();
448448 lStatus.mutable_info ()->set_process_state (BasicInfo::RUNNING);
449+ lStatus.mutable_partition ()->set_run_number (DataDistLogger::sRunNumber );
449450 I ().mDiscoveryConfig ->write ();
450451 }
451452
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ void StfSenderDevice::PreRun()
161161 if (!standalone () && I ().mDiscoveryConfig ) {
162162 auto & lStatus = I ().mDiscoveryConfig ->status ();
163163 lStatus.mutable_info ()->set_process_state (BasicInfo::RUNNING);
164+ lStatus.mutable_partition ()->set_run_number (DataDistLogger::sRunNumber );
164165 I ().mDiscoveryConfig ->write ();
165166 }
166167
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ void TfBuilderDevice::PreRun()
171171 // update running state
172172 auto & lStatus = mDiscoveryConfig ->status ();
173173 lStatus.mutable_info ()->set_process_state (BasicInfo::RUNNING);
174+ lStatus.mutable_partition ()->set_run_number (DataDistLogger::sRunNumber );
174175 mDiscoveryConfig ->write ();
175176
176177 // make directory for the file sink
Original file line number Diff line number Diff line change @@ -47,15 +47,14 @@ message BasicInfo {
4747}
4848
4949message PartitionInfo {
50- string environment_id = 1 ;
51- // AliECS environment ID (required)
52- string partition_id = 2 ;
53- // Partition ID. (required)
50+ string environment_id = 1 ; // AliECS environment ID (required)
51+ string partition_id = 2 ; // Partition ID. (required)
52+ uint64 run_number = 3 ;
5453}
5554
5655message TfSchedulerServiceConfigStatus {
57- BasicInfo info = 1 ;
58- uint32 number_instances = 2 ;
56+ BasicInfo info = 1 ;
57+ uint32 number_instances = 2 ;
5958}
6059
6160message TfSchedulerInstanceConfigStatus {
You can’t perform that action at this time.
0 commit comments