646 lab 604 custom job selector label#655
Conversation
LAB-604 custom job selector label
be able to put custom labels on plex jobs that pass through to bacalhau as a label, will be useful as instance type selector for benchmarking |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
If I read the code correctly, if |
With selector flagExpected error case when passing in node selector which doesn't exist works. Without selector flag@thetechnocrat-dev however, I got a The CID |
|
@acashmoney thanks for the extra testing. I changed the timeout to 5 minutes, which is what we had before and what bacalhau has set as the default. @alabdao, good catch I forgot I coded the selector to append last week. It now overrides. |
There was a problem hiding this comment.
With selector flag
go run main.go init -s owner=aakaash -t QmZWYpZXsrbtzvBCHngh4YEgME5djnV5EedyTpc8DrK7k2 -i '{"protein": ["QmUWCBTqbRaKkPXQ3M14NkUuM4TEwfhVfrqLNoBB7syyyd/7n9g.pdb"], "small_molecule": ["QmViB4EnKX6PXd77WYSgMDMq9ZMX14peu3ZNoVV1LHUZwS/ZINC000019632618.sdf"]}' --scatteringMethod=dotProduct --autoRun=true -a test
Plex version (v0.10.4) up to date.
Pinned IO JSON CID: QmWhpHj9qWwHETVwCJtK1o5wXvxF8h7oVBxQQKpp4HkDXK
Created working directory: /Users/aakaash/Desktop/code/OPENLAB/plex/jobs/fa3c55e8-9bf9-4d31-925f-9f8671a38315
Initialized IO file at: /Users/aakaash/Desktop/code/OPENLAB/plex/jobs/fa3c55e8-9bf9-4d31-925f-9f8671a38315/io.json
Processing IO Entries
Starting to process IO entry 0
Error processing IO entry 0
error submitting Bacalhau job: not enough nodes to run job. requested: 1, available: 0
Finished processing, results written to /Users/aakaash/Desktop/code/OPENLAB/plex/jobs/fa3c55e8-9bf9-4d31-925f-9f8671a38315/io.json
Completed IO JSON CID: QmQjaFxq4TpynLh7iLDjAAT96pzSL9T9S9TNd15sJqxSVY
Without selector flag
go run main.go init -t QmZWYpZXsrbtzvBCHngh4YEgME5djnV5EedyTpc8DrK7k2 -i '{"protein": ["QmUWCBTqbRaKkPXQ3M14NkUuM4TEwfhVfrqLNoBB7syyyd/7n9g.pdb"], "small_molecule": ["QmViB4EnKX6PXd77WYSgMDMq9ZMX14peu3ZNoVV1LHUZwS/ZINC000019632618.sdf"]}' --scatteringMethod=dotProduct --autoRun=true -a test
Plex version (v0.10.4) up to date.
Pinned IO JSON CID: QmWhpHj9qWwHETVwCJtK1o5wXvxF8h7oVBxQQKpp4HkDXK
Created working directory: /Users/aakaash/Desktop/code/OPENLAB/plex/jobs/02a36ee7-ecd7-4aa6-87e7-ec11a6cf98fc
Initialized IO file at: /Users/aakaash/Desktop/code/OPENLAB/plex/jobs/02a36ee7-ecd7-4aa6-87e7-ec11a6cf98fc/io.json
Processing IO Entries
Starting to process IO entry 0
Job running...
Bacalhau job id: 3ac8d6a5-e14e-4b1d-9657-f1d677bdfbd2
////_🌱___////
Computed default go-libp2p Resource Manager limits based on:
- 'Swarm.ResourceMgr.MaxMemory': "8.6 GB"
- 'Swarm.ResourceMgr.MaxFileDescriptors': 30720
Theses can be inspected with 'ipfs swarm resources'.
Success processing IO entry 0
Finished processing, results written to /Users/aakaash/Desktop/code/OPENLAB/plex/jobs/02a36ee7-ecd7-4aa6-87e7-ec11a6cf98fc/io.json
Completed IO JSON CID: QmbW5AqM8jdF8dcu2xe16g23Ykirc8TSjWWqESK4XNfbxe

Changes
plex initandplex runDetails
Add the -s flag to
plex runorplex initto directly pass selectors to Bacalhau. This will overwrite the default selector ofowner=labdao.Example
Will produce the error
Because there are no nodes with the selector owner = josh