go to post Dmitry Maslennikov · Dec 5, 2019 Looks like rescheduling running task does not work. But it is possible to create a new one, which runs once. Class User.Test Extends %SYS.Task.Definition { Parameter TaskName = "SomeTask"; Method OnTask() As %Status { Set task = ##class(%SYS.Task).%New() Set task.Name = "Test task" Set task.NameSpace = $Namespace Set task.TaskClass = ..%ClassName(1) Set task.TimePeriod = 5 // RunOnce Set task.RescheduleOnStart = 0 Set tSC = task.%Save() If $$$ISERR(tSC) { Quit tSC } Set nextDate = +$Horolog + $Random(10) + 1 Set nextTime = $ZTimeh("10:00") Quit ##class(%SYS.Task).RunOnce(task.%Id(), nextDate, nextTime) } }
go to post Dmitry Maslennikov · Dec 5, 2019 This is actually nothing related to InterSystems at all. You can do something like in this article. Just catch the file on the client-side in Browser, and send this file to the server, where you can save it as would do it for any usual file
go to post Dmitry Maslennikov · Dec 5, 2019 Task scheduler quite flexible Monthly simple Or more advanced way Do you have another algorithm, which can't be covered by this? If so, you can write a task, which will re-schedule itself when launched.
go to post Dmitry Maslennikov · Dec 4, 2019 I've recorded how I solved Day 4 with IRIS and VSCode-ObjectScript https://www.youtube.com/embed/3KtJY_ts5Ho[This is an embedded link, but you cannot view embedded content directly on the site because you have declined the cookies necessary to access it. To view embedded content, you would need to accept all cookies in your Cookies Settings]
go to post Dmitry Maslennikov · Dec 3, 2019 I think, the best way would be to have REST entrypoint, which would redirect also work with WebSockets, while REST api can handle any Authentication issues. As an example, you can look at %API.Atelier.v1 class and method RunDebugger, which redirects control WebSocket.
go to post Dmitry Maslennikov · Dec 2, 2019 Yeah, I forgot about docker. But it is possible to solve this as well. Connect to the instance with SSH in any way offered by Google. cd /opt/ISC sudo vi docker-compose.yml So, you can now add more ports. Save it (:wq))) sudo docker-compose up -d Do not forget to configure firewall rules. You can even add this line, and remove ports block at all, and get access to any future ports without a restart container. network_mode: host
go to post Dmitry Maslennikov · Dec 2, 2019 Mike, thanks for the feedback. Questions about passwords were raised privately. But mostly about secure storage. Your case very different, and even maybe better way, to have SSO instead of storing passwords. It will need some research, but I'm sure it will be possible to implement it. As a company CaretDev, I would like to offer commercial support to your company. So, it will be easier to find time to implement any features, you would like to have. About toggle between namespaces. I don't know why do you need it, and how you going to use it. The main point of VSCode is sources stored locally, when you will toggle namespace, how you going to keep namespaces correctly updated? Or you can use a server-side editing feature. You can create file myapp.code-workspace in the root of your project, press button Open workspace. And you will have connection to USER and %SYS namespaces as well, so, just add more isfs URLs with ns=NAMESPACE. { "folders": [ { "name": "myapp", "path": ".", }, { "uri": "isfs://myapp", "name": "server", }, { "uri": "isfs://myapp?ns=USER", "name": "user", }, { "uri": "isfs://myapp?ns=%SYS", "name": "system", } ], "settings": { "files.exclude": {}, "objectscript.conn": { "active": true, "username": "_system", "password": "SYS", "ns": "MYAPP", "port": 52773, }, "objectscript.serverSideEditing": true } }
go to post Dmitry Maslennikov · Dec 2, 2019 Suppose, you should look at Google's documentation. Particularly, about Using Firewall Rules On the Firewall rules page, you will find some predefined rules, for your IRIS instance, something like on the picture. So, you can just use it as a template, and do the same for your custom port.
go to post Dmitry Maslennikov · Dec 2, 2019 Most probably you just out of space on your docker disk. In this case, you'll just catch any different errors related to disk at any stage, when you work with Docker. If you are going to actively work with Docker as I am, I would recommend increasing the size of disk for Docker. Look at my recent article about it.
go to post Dmitry Maslennikov · Dec 1, 2019 It's kind of time you spend to solve a task, since it was unlocked at Noon EST. Only the first 100 get the score, by solving order.
go to post Dmitry Maslennikov · Nov 28, 2019 Maybe it is a license problem but I have no valid license key to test :-( You would need any license, and should be able to connect if you use IRIS Community Edition. But you need any license, with a common version, without a license it will not work. You can get a preview license on WRC.
go to post Dmitry Maslennikov · Nov 26, 2019 Thanks. UDL-preview is just for preview as UDL and does not offer to edit such files. It is possible to configure multi-root workspace, and edit classes/routines directly on a server, and in conjunction with Studio Source Control class, get your XML back after edit for you SCM.
go to post Dmitry Maslennikov · Nov 19, 2019 Unfortunately, I don't have yet, any good solution for now, as store your sources in XML format. You can export them with /exportversion=cache2018.1 flag, with your Studio SourceControl class. IRIS will upgrade source code for Caché and downgrade when you export them with the flag. Btw, you can have sources in XML and use the modern VSCode-ObjectScript editor.
go to post Dmitry Maslennikov · Nov 17, 2019 It's just a default empty instance. You then have to create a new namespace with the database. Interoperability will be enabled by default in that new Namespace, and it will appear there. But, you should have in mind, that all those changes may disappear by default, when you delete your container and start it again, it will be the same as in the first start. You can configure durable %SYS, to get it stored outside of the container or volumes.
go to post Dmitry Maslennikov · Nov 17, 2019 You can deploy IRIS with Kubernetes which is inside of OpenShift. It is not so easy to explain here. As it will be just a common task, rather than something narrow just for you. Deploying a database to the cluster is a very specific task, and very depends on your needs. As well as Kubernetes, I think you may also use ICM, did not use it before, so, not sure if it will work with OpenShift as well.
go to post Dmitry Maslennikov · Nov 17, 2019 Sharding will allow you to split your data between physically different servers with each own storage. So, you may get faster simultaneous read/write of data. At the same time with ECP configuration, your application servers will get direct access to the sharding node which holds data. So, if it is correctly configured you should get some profit from it, for sure.