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

cluster.submit is not able to transfer the files to server node #210

Open
Kekushke opened this issue Jun 11, 2020 · 3 comments
Open

cluster.submit is not able to transfer the files to server node #210

Kekushke opened this issue Jun 11, 2020 · 3 comments

Comments

@Kekushke
Copy link

cluster.submit using dispy_job_depends parameter is not able to transfer the files to server. Although the log shows that the files have gone through, the files do not appear on the server. Large files and delays were inserted to assure that the job would persist to confirm the problem. Also, directories were set up in multiple configurations.

I may be missing something simple... since I am also unable to print on to the dispynode logs from compute script tied into the JobCluster. Thx

@Kekushke
Copy link
Author

To give more information, the general structure is like this. The files 'a.txt' and 'b.txt' do not arrive on the cluster nodes, and print statement are not printing. I would prefer dispynode to print them. Also tried `dispy.logger'. Am I missing basic something? Thank you.

import dispy
C=None  #global

def setup_cluster():
    cobj=dispy.JobCluster(compute,callback=callback):
    return cobj

def callback():
     # callback here

def compute():
     # work with a.txt b.txt
     print ("in compute")

def submit_job(id)
    global C
    alpha=1
    beta=2
    if not C:
       C=setup_cluster():
    depends=['a.txt','b.txt']
    C.submit(id,alpha,beta,dispy_job_depends=depends)

# main
submit_job(1)
submit_job(2)
submit_job(3)

@pgiri
Copy link
Owner

pgiri commented Jun 12, 2020

File transfers should work fine; I just tested 4.12.2. You can simplify your example (e.g., try 'sample.py' with dispy_job_depends with a file and in compute check if os.path.exists("a.txt")). Note that the files are transferred only when job is sent to a node and as soon as that job is finished, the files are removed; i.e., unlike with depends that persist during whole computation (all jobs), job depends are available during that job's execution.

@Kekushke
Copy link
Author

Kekushke commented Jun 12, 2020

Most likely I had different versions running on different nodes, and that probably that caused the problem. I updated everything from scratch and all codes worked like charm. Please mark this resolved. This project is really awesome! Thank you!!

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

No branches or pull requests

2 participants