Skip to content

Commit

Permalink
Add prints for info
Browse files Browse the repository at this point in the history
  • Loading branch information
nwillhoft committed Oct 16, 2024
1 parent 99471dc commit d4d1957
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nextflow/modules/db_cleanup/cleanup_tmp_db.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ process CLEANUP_TMP_DB {
path compressed_file
tuple val(job_id), val(db_name)

output:
tuple val(job_id), val(db_name), emit: cleaned_up

script:
println "Cleaning up temporary db: ${db_name}_tmp"

"""
tmp_db_name="${db_name}_tmp"
echo "Attempting to drop database \${tmp_db_name} if it exists..."
Expand Down
2 changes: 2 additions & 0 deletions nextflow/modules/db_cleanup/monitor_db_copy.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ process MONITOR_DB_COPY {
tuple val(job_id), val(db_name), emit: monitored_job

script:
println "Monitoring job id: ${job_id}"

"""
# Define the API endpoint to check the status of the job
api_url="https://services.ensembl-production.ebi.ac.uk/api/dbcopy/requestjob/${job_id}"
Expand Down

0 comments on commit d4d1957

Please sign in to comment.