feat: Add batch job submission for task graph - #82
Conversation
WalkthroughThe changes introduce support for batch job submissions in the Changes
Sequence Diagram(s)sequenceDiagram
participant D as Driver::start
participant MS as MetadataStorage
D->>D: Check if m_batch is provided
alt Batch exists
D->>MS: add_job_batch(job_id, graph, m_batch)
else No batch available
D->>MS: add_job(job_id, graph)
end
MS-->>D: Return status/result
alt Error encountered
D->>D: Throw ConnectionException
else Successful submission
D->>D: Continue execution
end
sequenceDiagram
participant CT as Client Test (main)
participant D as Driver::start
participant MS as MetadataStorage
CT->>CT: Create task graph (sum_graph with sum_test binding)
loop For each job in batch (cBatchSize)
CT->>D: Start job with sum_graph and parameters
D->>MS: Process job submission (conditional branch)
MS-->>D: Return job status/ID
end
CT->>CT: Wait for all jobs to complete
CT->>CT: Verify job status and expected result
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (5)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
#75 adds batch job submission for starting a task function as a job. This pr adds batch job submission for starting a task graph as a job.
Checklist
breaking change.
Validation performed
Summary by CodeRabbit
New Features
Tests