EBISPOT / goci

GWAS Catalog Ontology and Curation Infrastructure
Apache License 2.0
26 stars 19 forks source link

cleanup homes directory #1461

Open ala-ebi opened 1 month ago

ala-ebi commented 1 month ago

make sure all the scheduled slurm jobs in scrontab have an error and output dir instead of using sportbot home dir by default. among those jobs:

/hps/software/users/parkinso/spot/gwas/prod/scripts/cron/ftp_sync_wrapper_slurm.sh /hps/software/users/parkinso/spot/gwas/dev/scripts/cron/ftp_sync_wrapper_slurm.sh Although the sbatch inside scrontab has defined --output and --error, there logs in the homes dir indicating another job is created, probably because the original sbatch starts another sbatch (although I cant see it in the file, maybe from the .py script that's called)

/hps/software/users/parkinso/spot/gwas/dev/scripts/cron/sumstats_service/submit_yaml_generation.sh

/hps/software/users/parkinso/spot/gwas/prod/scripts/cron/sumstats_service/submit_yaml_generation.sh

/hps/software/users/parkinso/spot/gwas/prod/sw/gwas-rabbitmq-listener/cancel-slurm-publication-import.sh

/hps/software/users/parkinso/spot/gwas/prod/sw/gwas-rabbitmq-listener/run-slurm-publication-import.sh

/hps/software/users/parkinso/spot/gwas/dev/scripts/cron/sumstats_service/submit_agg_email.sh

/hps/software/users/parkinso/spot/gwas/prod/scripts/cron/sumstats_service/submit_agg_email.sh

karatugo commented 2 weeks ago

Updated:

karatugo commented 2 weeks ago

@karatugo

karatugo commented 2 weeks ago
karatugo commented 1 week ago

Moved logs of rabbitmq start and stop scripts.

#SBATCH --output=/hps/nobackup/parkinso/spot/gwas/logs/sbatch/slurm-%j.txt
#SBATCH --error=/hps/nobackup/parkinso/spot/gwas/logs/sbatch/slurm-%j.txt
karatugo commented 1 week ago

Added 2>&1 to all scrontab entries to redirect both stderr and stdout.

sprintell commented 1 week ago

@sajo-ebi complete his part in the next sprint

karatugo commented 1 week ago
-rw-r--r--  1 spotbot spot         0 Nov 14 00:00 slurm-1343173.out - FTP-SYNC (PROD, MIDNIGHT)
-rw-r--r--  1 spotbot spot         0 Nov 14 00:15 slurm-1343176.out - SEND YAML GEN FAILURES (PROD)
-rw-r--r--  1 spotbot spot         0 Nov 14 00:15 slurm-1343177.out - SEND YAML GEN FAILURES (DEV)
-rw-rw-r--  1 spotbot spot   3417769 Nov 14 00:25 slurm-2072286.out - mapping
-rw-r--r--  1 spotbot spot         0 Nov 14 01:00 slurm-1343182.out - GENERATE YAML (PROD)
-rw-r--r--  1 spotbot spot         0 Nov 14 01:00 slurm-1343181.out - GENERATE YAML (DEV)
-rw-rw-r--  1 spotbot spot   3430881 Nov 14 04:25 slurm-2255120.out - mapping
-rw-r--r--  1 spotbot spot         0 Nov 14 06:50 slurm-1343179.out - rabbitmq
-rw-r--r--  1 spotbot spot         0 Nov 14 07:00 slurm-1343178.out - rabbitmq
-rw-rw-r--  1 spotbot spot   3406096 Nov 14 08:25 slurm-2394279.out - mapping
-rw-r--r--  1 spotbot spot         0 Nov 14 12:00 slurm-1343174.out - DEPO-SYNC (DEV)
-rw-r--r--  1 spotbot spot        28 Nov 14 12:25 slurm-1343168.out
-rw-rw-r--  1 spotbot spot   3173499 Nov 14 12:25 slurm-2426477.out - mapping
-rw-r--r--  1 spotbot spot         0 Nov 14 13:00 slurm-1343171.out - DEPO-SYNC (PROD, MORNING BATCH)
-rw-r--r--  1 spotbot spot         0 Nov 14 13:00 slurm-1343175.out - FTP-SYNC (DEV)
-rw-rw-r--  1 spotbot spot   1943308 Nov 14 14:59 slurm-2485397.out
karatugo commented 2 days ago

Okay I see that after a few days empty log files get deleted (probably automatically). So the following should be done now.

FTP SYNC (prod, dev)
GENERATE YAML (DEV)
GENERATE YAML (PROD)
SEND YAML GEN FAILURES (DEV)
SEND YAML GEN FAILURES (PROD)