And I have the ability to log on to the machine and connect to the output of each of the process. How can I alter this code so that my python script, creates a new process which is disconnected from this consumer.īASICALLY, How can I efficiently create n number of processes, using a python script, which are not dependant on the script that started them. Over here I simply add an & symbol to the end of the command so that it runs in the background. And that is the issue.Ĭurrently: n(f'nextflow run nextflow/workflow_runner.nf -w "gs://nextflow-text-bucket/work" -c nextflow/nfig -at_config &', shell=True) If I exit the python script that spawns these processes, I exit the actual workflow process as well. So if I have 5 messages in the queue, I need to feed the configuration 5 commands through my consumer which starts the workflow. Each of these configurations' has all the information required to start a workflow. I have a RabbitMQ message queue where I add configuration.json to the queue.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |