-
Notifications
You must be signed in to change notification settings - Fork 98
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
update galaxy_jwd script to skip if the backend is not of type disk and if backend is removed from the object_store_conf file #1394
Conversation
…nd if backend is removed from the object_store_conf file
I'm not sure I understand why we should not find a jwd if we use an object store like S3. |
The user object stores (S3 or anything else) will use the object store cache directory as their JWDs (AFAIR; for the cache dir, we probably want to use a "watchdog" to remove dirs). The non-disk type backends that we define in our |
Yes! :) We should maybe check if celery is now cleaning this already. I remember discussing this at some point. S3 has also an extra dir and I would argue we need to ensure that S3 backends needs to use our normal JWDs. There should be no differences on the job level. Independent from where the data is coming. Is this script also used for the CLI tool |
user object stores will anyway get filtered out when checking whether the object_store_id exists in the object_store_conf.xml. So, the error would not appear.
I have removed the "skipping" based on the disk type. The skip will happen only when the Yes, the script is also used for the CLI tool. |
@sanjaysrikakulam can you explain that tomorrow please? I missing something I guess. |
When we run the
galaxy_jwd.py
script to clean up, we get the error below from some jobs because the script cannot handle the user objects and S3 storage types.This PR skips the job id if:
object_store_conf.xml
disk
(this is also for the S3 and other nondisk
type backends)I also tested the changes with a dry run, which skips them correctly and lists the ones to be deleted.