I'm using snakemake (v7.22.0) to execute multiple jobs on a cluster. I have several different versions of the workflow which I somtimes execute in parallel, which involves changing the config file (and others). My problem is, if I understand the behavior correctly, that if I edit the config file before some of the jobs start running on the cluster, then they read the config file after I the edits, using different values from when the original workflow that created the job was created. In particular, this changes the workdir, so relative paths become incorrect.
I see this according to the job's stdout, which reiterates the config, e.g.
{'workdir': 'workdir1', 'seeds': ...}
but I get different values for 'workdir' for different jobs originating from the same snakemake session.
Is this indeed the behavior of snakemake in remote rules, or am I mistaken? If so, what I can do to be able to change the config and still get consistent results from all the remote jobs? Using multiple config files would lead to more human errors in my scenario.
Thanks in advance!