You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a tests list, and I have computers that can run these unit tests. On my website there's a way to choose tests, choose computers and then run these tests.
The catch is, some tests may only be able to run on certain computers.
How can I adjust bullMQ to support this?
So essentially, in pseudo code, let's say I have the test list:
test_list = [T1, T2, T3, T4, T5]
And some tests, for example T3 and T4 can only run on Computer1 and Computer2.
The half baked solutions I came with are:
I could make multiple Queues, but in that way, I am no longer enjoy power consumption of all of my computers, because let's say I consumed T3 and T4, now Computer1 and Computer2 won't run the rest of the tests?
I could ask on the Worker side if the current job test is supported by current setup, if not i can just skip.
But I would have a lot of skips, and I want to try and void them as much as possible
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a tests list, and I have computers that can run these unit tests. On my website there's a way to choose tests, choose computers and then run these tests.
The catch is, some tests may only be able to run on certain computers.
How can I adjust bullMQ to support this?
So essentially, in pseudo code, let's say I have the test list:
And some tests, for example T3 and T4 can only run on Computer1 and Computer2.
The half baked solutions I came with are:
I could make multiple Queues, but in that way, I am no longer enjoy power consumption of all of my computers, because let's say I consumed T3 and T4, now Computer1 and Computer2 won't run the rest of the tests?
I could ask on the Worker side if the current job test is supported by current setup, if not i can just skip.
But I would have a lot of skips, and I want to try and void them as much as possible
How can I support such scenario?
Beta Was this translation helpful? Give feedback.
All reactions