Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quering status of unexistent file artefact, while dir arfefact with the same name exists, throws scary error #108

Open
dgrechka opened this issue Aug 31, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@dgrechka
Copy link
Member

Executing

(venv) dmitry[1869.train]@compute:/mnt/ssd/PetSimilarity-ML$ alpheus status experiments/dgrechka/4/run3

while dir experiments/dgrechka/4/run3/ exists

gives

System.InvalidOperationException: The artefact vertex has no producer vertex set. Set the ProduceBy before retrieving its value
   at ItisLab.Alpheus.DependencyGraph.ArtefactVertex.get_ProducedBy() in C:\repos\alpheus\AlpheusCore\DependencyGraph.fs:line 136
   at ItisLab.Alpheus.DependencyGraphToAngaraWrapper.ItisLab-Alpheus-AngaraTranslator-IDependencyGraph`2-ProducedBy(ArtefactVertex artefact) in C:\repos\alpheus\AlpheusCore\DependencyGraphToAngaraWrapper.fs:line 19
   at ItisLab.Alpheus.AngaraTranslator.registerArtefactRelatedMethods@34.Invoke(Artefact artefact, FlowGraph`1 graph, FSharpMap`2 methodNodeMap) in C:\repos\alpheus\AlpheusCore\AngaraTranslator.fs:line 34
   at [email protected](Tuple`2 tupledArg, Artefact artefact) in C:\repos\alpheus\AlpheusCore\AngaraTranslator.fs:line 61
   at Microsoft.FSharp.Collections.SeqModule.Fold[T,TState](FSharpFunc`2 folder, TState state, IEnumerable`1 source) in E:\A\_work\130\s\src\fsharp\FSharp.Core\seq.fs:line 729
   at ItisLab.Alpheus.AngaraTranslator.translate[Node,Artefact,Method](FSharpFunc`2 nodeFactory, IDependencyGraph`2 dependencyGraph) in C:\repos\alpheus\AlpheusCore\AngaraTranslator.fs:line 63
   at ItisLab.Alpheus.StatusGraph.buildStatusGraph(Graph g, String experimetRoot, FSharpFunc`2 checkStoragePresence) in C:\repos\alpheus\AlpheusCore\StatusGraph.fs:line 114
   at [email protected](Graph _arg1) in C:\repos\alpheus\AlpheusCore\API.fs:line 170
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, FSharpFunc`2 userCode, b result1) in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 417
   at [email protected](AsyncActivation`1 ctxt) in C:\repos\alpheus\AlpheusCore\API.fs:line 22
   at [email protected](AsyncActivation`1 ctxt) in C:\repos\alpheus\AlpheusCore\API.fs:line 169
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 109
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.FSharp.Control.AsyncResult`1.Commit() in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 349
   at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronouslyInCurrentThread[a](CancellationToken cancellationToken, FSharpAsync`1 computation) in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 870
   at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronously[T](CancellationToken cancellationToken, FSharpAsync`1 computation, FSharpOption`1 timeout) in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 890
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken) in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 1153
   at ItisLab.Alpheus.API.status(String experimentRoot, ArtefactId artefactId) in C:\repos\alpheus\AlpheusCore\API.fs:line 168
   at [email protected](Tuple`2 _arg9) in C:\repos\alpheus\Alpheus.CLI\Runner.fs:line 73
   at ItisLab.Alpheus.Results.ResultBuilder.Bind[a2,a3,a4](FSharpResult`2 m, FSharpFunc`2 f) in C:\repos\alpheus\AlpheusCore\ResultBuilder.fs:line 16
   at [email protected](Unit unitVar) in C:\repos\alpheus\Alpheus.CLI\Runner.fs:line 72
   at ItisLab.Alpheus.Results.ResultBuilder.Run[m](FSharpFunc`2 f) in C:\repos\alpheus\AlpheusCore\ResultBuilder.fs:line 31
   at ItisLab.Alpheus.CliRunner.run(String programName, String workingDir, ParseResults`1 parseResults) in C:\repos\alpheus\Alpheus.CLI\Runner.fs:line 69
   at ItisLab.Alpheus.Program.main(String[] argv) in C:\repos\alpheus\Alpheus.CLI\Program.fs:line 42
@dgrechka dgrechka added the bug Something isn't working label Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant