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

resume multiple batch pipeline #719

Closed
tamir321 opened this issue Feb 13, 2020 · 2 comments · Fixed by #723
Closed

resume multiple batch pipeline #719

tamir321 opened this issue Feb 13, 2020 · 2 comments · Fixed by #723

Comments

@tamir321
Copy link

tamir321 commented Feb 13, 2020

HKube micro-service
pipeline driver

Describe the bug
pausing and resuming multiple batch pipeline does not resume the next batch

To Reproduce
run the following pipeline

{
    "name": "multiple-batch-pipeline",
    "nodes": [
        {
            "nodeName": "eval1",
            "algorithmName": "eval-alg",
            "input": [
                "@flowInput.range"
            ],
            "extraData": {
                "code": [
                    "(input) => {",
                    "const range = Array.from(Array(input[0]).keys());",
                    "return range }"
                ]
            }
        },
        {
            "nodeName": "firstbatch",
            "algorithmName": "eval-alg",
            "input": [
                "#@eval1",
                "@flowInput.inputs"
            ],
            "extraData": {
                "code": [
                    "(input,require)=> {",
                    "return new Promise((resolve,reject)=>{setTimeout(()=>resolve(4),input[1])});}"
                ]
            }
        },
        {
            "nodeName": "secondbatch",
            "algorithmName": "eval-alg",
            "input": [
                "#@eval1",
                "@flowInput.inputs",
                "@firstbatch"
            ],
            "extraData": {
                "code": [
                    "(input,require)=> {",
                    "return new Promise((resolve,reject)=>{setTimeout(()=>resolve(4),input[1])});}"
                ]
            }
        }
    ],
    "experimentName": "main",
    "options": {
        "ttl": 3600,
        "batchTolerance": 80,
        "progressVerbosityLevel": "info"
    },
    "priority": 3
}

with

{
  "name": "multiple-batch-pipeline",
  "experimentName": "main",
  "flowInput": {"range": 100,
            "inputs":3000},
  
}

while pipeline execute the "firstbatch" pause it
wait for 5 minutes(for the first batch to complete) and resume
the pipeline will only complete the first batch and not continue to the new one
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@nassiharel
Copy link
Contributor

nassiharel commented Feb 17, 2020

should work now :)

You don't need a delay of 3 seconds.....

@tamir321
Copy link
Author

tested on version 1.2.40

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

Successfully merging a pull request may close this issue.

2 participants