Skip to content

Commit

Permalink
allowed more jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-ftricomi committed Aug 2, 2024
1 parent 08cc4f0 commit fdda088
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pipelines/nextflow/modules/store_into_db.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ process STORE_INTO_DB {
scratch false
label 'default'
tag "$run_accession"
//maxForks 20
maxForks 10

input:
tuple val(taxon_id), val(gca), val(run_accession), val(query)
Expand Down Expand Up @@ -58,7 +58,7 @@ process STORE_INTO_DB {
query = query.trim()
// Check if the query is not empty
if (query) {
//log.info("queriesArray[${index}] ${query};")
log.info("STORE INTO DB ${query};")
setMetaDataRecord(query.toString())
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ process FETCH_GENOME {

//storeDir "${params.outDir}/$taxon_id/$gca/ncbi_dataset/"
afterScript "sleep $params.files_latency" // Needed because of file system latency
maxForks 1
maxForks 10

input:
tuple val(taxon_id), val(gca), val(run_accession), val(pair1), val(pair2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ process INDEX_GENOME {
tag "$taxon_id:$gca"
publishDir "${params.outDir}/$taxon_id/$gca/ncbi_dataset/", mode: 'copy'
afterScript "sleep $params.files_latency" // Needed because of file system latency
maxForks 1
maxForks 10

input:
tuple val(taxon_id), val(gca), val(run_accession), val(pair1), val(pair2), val(genomeDir)
Expand Down
4 changes: 2 additions & 2 deletions pipelines/nextflow/modules/utils.nf
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def setLastCheckDate(String taxonId,String query_option) {
}

def setMetaDataRecord(String mysqlQuery){
synchronized(this) {
// synchronized(this) {
def sql
sql = Sql.newInstance(jdbcUrl, params.transcriptomic_dbuser,params.transcriptomic_dbpassword,driver)

Expand Down Expand Up @@ -156,7 +156,7 @@ def setMetaDataRecord(String mysqlQuery){
}
}
}
}
//}


def getDataFromTable(String queryKey, String queryTable, String tableColumn, String tableValue){
Expand Down

0 comments on commit fdda088

Please sign in to comment.