azist / azos Goto Github PK
View Code? Open in Web Editor NEWA to Z Sky Operating System / Microservice Chassis Framework
License: MIT License
A to Z Sky Operating System / Microservice Chassis Framework
License: MIT License
: [System.MissingMethodException] Constructor on type 'Azos.IO.FileSystem.Local.LocalFileSystem' not found.'
This leaks:
event
{
name='Clean Log Files'
type='Azos.IO.FileSystem.DeleteFilesJob, Azos'
interval="04:30:00" //every 4 and a half hours
recurse=false //analyzing just the specified directory
delete-empty-dirs=false //keep all dirs as-is
name-include-pattern="*.csv.log" //delete all files matching pattern
last-modify-ago-hrs=120 // make sure that the file has not been touched for more than 120 hrs
log-stats=true // emit instrumentation from this activity
file-system
{
//because we have not specified the 'type' attribute of the file-system
//it would default to local file system (which uses System.IO.FileStream etc.)
//we could have injected a different file-system, e.g. Amazon S3, then the job
//would have removed ols files remotely
root-path=$(/paths/$log-path) //process files in this dir (see config above)
}
}
Need to have checing against known content types:
public bool IsImage => ContentType.IsOneOf(ContentTypes.Images);
public bool IsString => ContentType.IsOneOf(ContentTypes.Textual);
Runnable - consider invoking async methods and properly awaiting them -
this is needed for example to make sure that tests epilogue is ran to completion on
a thread pool and properly awaited for
This is already done via:
call = client.CallMe("abc");
await call;
var v= call.GetValue<string>();//v = "abc"
I have question about nesting of app containers in v5 (per your email i ask here)
how is it that services use App. global accessor when context is nested?
I don't get what first services (the ones that booted under first) shall see upon 2nd container launch - 2nd app scope?
Is this a glitch?
I do buy this static class pattern for "ambient context" but perplexed about nesting.
We need to support ORACLE's ODP.NET:
https://www.oracle.com/technetwork/topics/dotnet/index-085163.html
/elm/build/Azos.nuspec
Started today
add operators to PilePointer like
!ptr
dereferencing
[System.InvalidCastException] Unable to cast object of type 'System.String' to type 'System.Collections.Generic.List`1[Azos.Serialization.JSON.JSONDataMap]'.
the following xml parsed:
<?xml version="1.0" encoding="utf-16"?>
<app a="1" b="2" c="1/1/2018" d=" string with spaces" e="
verbatim
string
spanning lines">
<log>
<sink name="name1">
</sink>
<sink name="name2">
</sink>
</log>
<a /> <------------------------------- addition of this node causes the bug -->
</app>
``
[Error] [System.AggregateException] One or more errors occurred. (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.)
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`2 body)
at Azos.Tests.Unit.Glue.TestLogic.TASK_TestContractB_4_Parallel(String CONF_SRC, Boolean threadSafe) in C:\Zdev\ghub\azos\src\testing\Azos.Tests.Unit\Glue\TestLogic.cs:line 517
at Azos.Tests.Unit.Glue.MpxTests.Mpx_TASK_B_4_Parallel_ThreadSafeServer() in C:\Zdev\ghub\azos\src\testing\Azos.Tests.Unit\Glue\MpxTests.cs:line 198
[Error[1]] [System.DivideByZeroException] Attempted to divide by zero.
at Azos.Glue.Implementation.CallsWithTasks.Put(CallSlot call) in C:\Zdev\ghub\azos\src\Azos\Glue\Implementation\CallsWithTasks.cs:line 37
at Azos.Glue.Implementation.GlueDaemon.SubscribeCallSlotWithTaskReactor(CallSlot call) in C:\Zdev\ghub\azos\src\Azos\Glue\Implementation\GlueDaemon.cs:line 318
at Azos.Glue.CallSlot.get_AsTask() in C:\Zdev\ghub\azos\src\Azos\Glue\CallSlot.cs:line 246
at Azos.Tests.Unit.Glue.TestLogic.<>c__DisplayClass19_0.<TASK_TestContractB_4_Parallel>b__0(Int32 i, ParallelLoopState loop) in C:\Zdev\ghub\azos\src\testing\Azos.Tests.Unit\Glue\TestLogic.cs:line 526
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
e.g. we can create a FS module, like FileSystemMounts : Module and then pre-mount file systems
and then access them by unique name, such as:
_include{ file-system{mounted="LocalFileSystem1" } }
See ConfigNode.getIncludedNodeRoot
I get errors from missing files. After examining your code looks like you build tools first then use those later in msbuild pipeline via cmd inclusions. I also noticed the "Under construction" sorta manifest in bash files -
#!/usr/bin/env bash
echo "THIS IS UNDER CONSTRUCTION";
exit 1;
what is the eta on that?
Try this laconic:
app=890 //<--- 890 will be lost in XML
{
a=9{}
a=123{}
}
I'm missing a bool TryGet(ptr, out object)
.
Is there a reason why there is only a Get(ptr) which throws an (slow) exception in case the Ptr is invalid?
.NonBlank(minSize=1, maxSize=-1)
.NonBlankMax(max size)
Revise how context flows
It is hard-coded now which is wrong, it also needs to have adefaul, in case
config is not provided it should work out-of-the box
Not sure understand, how is Glue calling Dispose on server?
1 Registered domain
2 Added the first docfx draft
Currently the GDID consumption is facilitated using Sky contract,
but what if I need to generate GDIDs from older code via HTTP?
app
{
name="iformsapp"
log-path=$(~ERX_HOME)$(@$name) // common path for all logging output
log-file-name="{0:yyyyMMdd}-$(./$name).csv.log"
log
{
sink //catch-all general logger
{
name=General
type="Azos.Log.Sinks.CSVFileSink, Azos"
path=$(/$log-path)
min-level=Info
file-name=$(/$log-file-name)
}
why one of them holds value in unit, another does not?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.