Hi,
I have submitted a large number of jobs (several hundred) using fireworks with slightly different parameters.
I now find that all of the jobs contain an error which will lead to them fail, so I need to defuse them, archive the FWs, and try again.
I know that you can defuse a firework by doing
lpad defuse_fws -i 1
or several jobs by doing
lpad defuse_fws -i 1,2,3,4
but is there a command for defusing a range of jobs, i.e.
lpad defuse_fws -i 1-10
?
Thanks,
Rasmus
Hi Rasmus
There is no way to use a syntax like 1-10 with the -i option
However there are other query options that you can use besides -i, including:
-
-s if you want to defuse all jobs that have a certain state, e.g. FIZZLED
-
-q if you want to do a general mongodb query which is very flexible in selecting jobs. Something like:
lpad defuse_fws -q ‘{“fw_id”: {"$gte": 1, “$lte”: 10}}’
might do what you need. If you want to test the selection command first you can do something like
lpad get_fws -q ‘{“fw_id”: {"$gte": 1, “$lte”: 10}}’ -d less
which will print out basic details of the Fireworks you are selecting
Best,
Anubhav
···
On Wed, Aug 3, 2016 at 5:27 PM, Rasmus Karlsson [email protected] wrote:
Hi,
I have submitted a large number of jobs (several hundred) using fireworks with slightly different parameters.
I now find that all of the jobs contain an error which will lead to them fail, so I need to defuse them, archive the FWs, and try again.
I know that you can defuse a firework by doing
lpad defuse_fws -i 1
or several jobs by doing
lpad defuse_fws -i 1,2,3,4
but is there a command for defusing a range of jobs, i.e.
lpad defuse_fws -i 1-10
?
Thanks,
Rasmus
–
You received this message because you are subscribed to the Google Groups “fireworkflows” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fireworkflows.
To view this discussion on the web visit https://groups.google.com/d/msgid/fireworkflows/5b27cd86-ca9f-4dc9-b5d0-2739b78f1c2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Best,
Anubhav
Thank you, Anubhav,
the general mongodb query seems to be just what I was looking for!