Comments (8)
hufnagel: Could this be related to the fact that the WMWorkloadURL uses a relative instead of an absolute path ? The workload files are created in the Tier0Feeder component directory, with a relative path the JobCreator likely can't find them.
How do I fix this ? I have to create the workload files in another component, there is no way around that. But maybe I can pass an absolute path to the JobCreator somehow ?
from t0.
hufnagel: Code in Tier0Feeder:
taskName = "Express"
wmSpec = expressWorkload("TestWorkload", getExpressArguments())
wmSpec.setSpecUrl("somespec")
wmSpec.setOwnerDetails("[email protected]", "T0",
{ 'vogroup': 'DEFAULT', 'vorole': 'DEFAULT' } )
wmbsHelper = WMBSHelper(wmSpec, taskName)
wmbsHelper.createSubscription(wmSpec.getTask(taskName), fileset)
How can I have JobCreator pick this up correctly ?
from t0.
mnorman: Here are the two conditions that have to be met for JobCreator to work with your workload.
-
The workload must have an actual full task path - that is the "task" column in wmbs_workload must contain the full path (although who puts that there is irrelevant)
-
The workload must contain a valid spec url. That is the "spec" column in wmbs_workload must point to a location that can be loaded by the WMWorkloadHelper (a class in WMSpec.WMWorkload) load function. Ideally this is an absolute path, but it could allow relative paths if so equipped, and could even allow couch loading.
Now, the code you're running should provide both of those values, because it should pick them up from the wmSpec, but can you look into the WMBS database and tell me what's in the task and spec columns for this workflow?
from t0.
hufnagel: After Tier0Feeder creates the workflow, a dump of wmbs_workflow
[(1, './TestWorkload/WMSandbox/WMWorkload.pkl', 'TestWorkload', '/TestWorkload/Repack', 'tie0, 1, '0'), (2, './TestWorkload/WMSandbox/WMWorkload.pkl', 'TestWorkload', '/TestWorkload/Repack/LogCollect', 'tie0, 1, '0')]
from t0.
hufnagel: Problem was that WMBSHelper uses . as default for the cachepath (root path for where it stores the workload files). I just need to configure this with an absolute path instead. Will add a configuration option for the Tier0Feeder component and test again.
from t0.
hufnagel: Fix this problem and a couple other small issues that prevented the jobs from making it through the JobCreator.
Please review (both RunConfig and Tier0Feeder unit tests).
from t0.
mnorman: Works for me with both unittests.
from t0.
hufnagel: (In 4144825) Change directory for repack/express workloads, fixes #3053
Signed-off-by: Dirk Hufnagel [email protected]
from t0.
Related Issues (20)
- Cleanup script needs to check if run is active or not HOT 11
- change the wmbs_location_senames table HOT 2
- Report Repacked Files For Unclosed Runs HOT 1
- fix Express AlcaSkim task to use single core HOT 1
- Run tests in CI
- Where is the real Tier0 config? HOT 6
- Create the change for Tier0 on PNN, PSN mapping. HOT 2
- Consider throwing in case of duplicate data set definitions in Tier0 config
- Overriding SoftTimeout and GracePeriod ? HOT 25
- Fileset closing is not waiting for the data in the run_stream_fileset to be complete HOT 6
- Versioning T0 replay runs when the same run is used more than once HOT 9
- Condition_t is not working properly HOT 1
- Tier0 and Rucio Subscriptions HOT 3
- SQL queries return unicode strings while CMSSW only accepts byte strings HOT 7
- Open files/urls with context manager HOT 3
- Update the T0 deployment script with the Rucio project metadata value HOT 1
- Replay test with 12_1_0_pre3 HOT 10
- Post description of Replay PR to HN
- Clean up Heavy Ion Config files HOT 2
- version #100 is not clear HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t0.