materialsproject / fireworks

The Fireworks Workflow Management Repo.
https://materialsproject.github.io/fireworks
Other
351 stars 184 forks source link

[Feature Request]: need a documentation for fireworks.core.launchpad.LaunchPad.update_spec() #537

Open jinlhr542 opened 1 week ago

jinlhr542 commented 1 week ago

Problem

Dear developers,

I am new in FIREWORKS and I recently need to code a project using queue adapters to submit jobs through different computing resources (with different number of cores, tasks etc.). I am trying to use fireworks.core.launchpad.LaunchPad.update_spec() to achieve flexibility in queue submission. However, I have reviewed the document but have not found a detailed tutorial or reference for how to setting queue adapter parameters. It would be greatly appreciated if a parameter reference can be provided here. For instance I tried to use lpad.update_spec(fw_ids, {'$set' : 'ntasks_per_node' : 26}) to specify the number of tasks per node, but it turns out that this modification did not work and the queue adapter still used the default settings by the config file my_qadapter.yaml.

Proposed Solution

Provide a detailed documentation or parameter reference on how to modify queue adapter parameters using lpad.update_spec()

Alternatives

No response