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

is there a change to what the create_project method returns -- I'm getting None back for the project dictionary. #22

Open
hschellman opened this issue Sep 21, 2023 · 10 comments

Comments

@hschellman
Copy link

I'm running my test code again after a month or so and I find that this code:

try:
print ("try to make a project")
proj_dict = dd_client.create_project(files=query_files, query=thequery, idle_timeout=259201)
print ("project creation succeeded",query_files,thequery)
except:

print ("project creation failed")

if debug: print("project dictionary",proj_dict)

succeeds but prints out:

create_project with 10 files
try to make a project
project creation succeeded 10 files from schellma:rawPhysics_5141_5143 ordered skip 10 limit 10
project dictionary None

so valid list of files and query, no exception but no response.

THanks, Heidi

@ivmfnal
Copy link
Owner

ivmfnal commented Sep 22, 2023

I think I fixed it.
Please try and let me know

@hschellman
Copy link
Author

hschellman commented Sep 22, 2023 via email

@ivmfnal ivmfnal closed this as completed Sep 22, 2023
@hschellman
Copy link
Author

hschellman commented Sep 22, 2023 via email

@ivmfnal
Copy link
Owner

ivmfnal commented Sep 22, 2023

What was the error ?

@ivmfnal ivmfnal reopened this Sep 22, 2023
@hschellman
Copy link
Author

hschellman commented Sep 22, 2023 via email

@ivmfnal
Copy link
Owner

ivmfnal commented Sep 22, 2023

Replica availability information is not updated in real time. So initially replicas are always not found until DD polls Rucio next time

@hschellman
Copy link
Author

hschellman commented Sep 22, 2023 via email

@ivmfnal
Copy link
Owner

ivmfnal commented Sep 22, 2023

I am not sure what you mean.
The worker is supposed to issue "next file", which will block until a replica to become available or the project ends.
Are you doing something else ?

@hschellman
Copy link
Author

hschellman commented Sep 22, 2023 via email

@ivmfnal
Copy link
Owner

ivmfnal commented Sep 22, 2023

List of replicas ?
List of replicas for the next file or list of all replicas for all files in the project ?

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