Coder Social home page Coder Social logo

Comments (10)

BoPeng avatar BoPeng commented on August 30, 2024

Simplifying the test case to

[global]
parameter: mem = "16G"

[A]
output: 'test_file'
task: mem = mem
bash: expand=True
    touch {_output}

[B]
input: output_from("A")
bash:
    touch {_input}.processed

with command error being

> sos run test_task_params.sos B  -s force -q localhost
INFO: Running A:
ERROR: [A (A)]: [A]: Failed to execute process
"'bash(fr"""touch {_output}\n\n""")\n'"
name 'mem' is not defined
[B]: Exits with 1 pending step (B)

Note that the pipeline works without -q localhost.

from sos.

BoPeng avatar BoPeng commented on August 30, 2024

Could you test if branch issue1457 works?

from sos.

hsun3163 avatar hsun3163 commented on August 30, 2024

Could you test if branch issue1457 works?

I am not sure how to install this branch into my cluster. I have been installing sos via pip.

from sos.

gaow avatar gaow commented on August 30, 2024

@hsun3163 you clone that branch to your computer, cd to it and install via pip install .

from sos.

hsun3163 avatar hsun3163 commented on August 30, 2024

I can successfully run the new testing example you created. But when I try to run my original example, or any other notebook with task statement. I recieved the following error:

ERROR: Failed to parse statement: trunk_workers = 1, walltime = walltime, mem = mem, cores = numThreads, tags = f'{step_name}_{_output:bn}'
 in exec mode

from sos.

BoPeng avatar BoPeng commented on August 30, 2024

Just pushed another commit. Please try again.

from sos.

hsun3163 avatar hsun3163 commented on August 30, 2024

I works now, thank you!

from sos.

BoPeng avatar BoPeng commented on August 30, 2024

Great. I will create a new release of sos after more testing.

from sos.

gaow avatar gaow commented on August 30, 2024

@BoPeng shall we make a new release so others will benefit from the fix? Currently this works well on our end.

from sos.

BoPeng avatar BoPeng commented on August 30, 2024

ok. I have just released sos 0.22.7. I have tried to make all sos tests run in the past few days. The problem was that the tests were using subprocess-based sos runs so all file handles will be reclaimed even if sos run failed. I have changed most of the tests to execute_workflow so many tests fail due to an insufficient number of file handlers, apparently caused by (intentionally) failed tests. The entire execution step is complicated so I have not figured out a good way to clean up properly.

from sos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.