Closed Megafredo closed 3 months ago
Tested locally and everything seems good to me, here are different cases I've tested:
duration_period
time in ISO8601 format:
run_and_terminate
process => worksrun_and_terminate
process => worksrun_and_terminate
process => worksSteps to Reproduce and my understanding:
Stop the Worker:
Run the Connector:
Scheduler Checks duration_period
Configuration:
duration_period
setting.Main Process Execution:
Scheduler Activation:
Queue Size Threshold Check:
queue_threshold
.Queue Size Condition:
During the test, the connector was modified to run the scheduler as following:
def process_message(self):
"""Main process of the connector."""
[...]
def run(self):
self.helper.schedule_iso(
message_callback=self.process_message,
duration_period=self.config.duration_period,
)
Proposed changes
Related issues
Checklist
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...