Query wait conditions with API? - control-m

Can the Control-M API be used to find out what conditions a job in the current NEWDAY is waiting on?
I realize this is a simple question, but I do not yet have access to use the Control-M API.

It doesn't look like that functionality has made it to the API as yet (not that I could see, anyway).
However, there is the ctmcontb utility (available on Server and Agent) that can be added to scripts.

Related

Schedule HTTP requests at point in time

I need to schedule actions (HTTP requests is enough) at a certain point in time. Every programmed request will only run once.
Sure I could implement this myself; saving the event to a database, then have an event-loop check if an action should be launched.
However this is such a generic need, there must be an existing service for this general type of need, feels like something I shouldn't implement myself. Any ideas where this can be found? I'm thinking one could just specify the http request to be saved (uri, body, headers)
AWS sure has a way of doing this using Cloudwatch events with a cron configured at the specific point in time. But this is way to clunky IMO. Is there an existing service/solution for this?
Agenda-Rest is a solution that does exactly what I asked for. It has to be self hosted though, as there seems to be no commercial hosting of it. It's also not actively developed, which could very well be that it's pretty much feature complete. After all it's a small wrapper on top of the library Agenda.
There's an alternative, suggested in a GitHub issue of Agenda-Rest, called AgenDash build on top of the same library. It's actively developed, as of autumn 2022. It's primarily a UI on top of Agenda, but it has rest routes that can be called.
There are also several libraries in various languages that exposes this functionality provided a persistence mechanism
agenda (nodejs + mongodb)
redbeat (python + redis)
db-scheduler (java + any rdbms)
I'm quite surprised that I can't find this functionality as a first class citizen in the public cloud providers.
Edit:
AWS introduced the feature EventBridge Scheduler in nov 2022. It does not allow for a http request per see, but things like invoke a lambda or post a message to a queue is possible. They support one-time schedules so no need for cron and no need for removing it later as mentioned in my question above.

Cloud Tasks - waiting for a result

My application needs front-end searching. It searches an external API, for which I'm limited to a few calls per second.
So, I wanted to keep ALL queries, related to this external API, on the same Cloud Task queue, so I could guarantee the amount of calls per second.
That means the user would have to wait for second or two, most likely, when searching.
However, using Google's const { CloudTasksClient } = require('#google-cloud/tasks') library, I can create a task but when I go to check it's status using .getTask() it says:
The task no longer exists, though a task with this name existed recently.
Is there any way to poll a task until it's complete and retrieve response data? Or any other recommended methods for this? Thanks in advance.
No. GCP Cloud Tasks provides no way to gather information on the body of requests that successfully completed.
(Which is a shame, because it seems quite natural. I just wrote an email to my own GCP account rep asking about this possible feature. If I get an update I'll put it here.)

Processing Requests in the Background

I'm writing a REST API using ASP.Net Core and Microsoft SQL Server. One of my requirements is that clients will POST certain data to this API and the API will have to transform/process the data in some way before it is used or read. Turns out this processing is costly. So I'm thinking of doing it asynchronously in the background without blocking the POST request. I'm considering doing the processing:
In a scheduled SQL job
Using a separate Windows Service running in the background that reads from the DB, does the processing and writes back to it. It'll be slower than the SQL job I presume, but the code will be more readable.
Using Hangfire. Never used it. Not sure how well it works.
What are the best options for this? Are there there any best practices around this kind of thing?
Boilerplate
Store that data somewhere (RDBMS, nonSQL, etc)
Respond to user that his data has been scheduled for processing
Run some worker or pool of workers for job processing
Store result somewhere
Notify client that background job is complete (could be just a GET /jobs/id endpoint which client can check
Show that result
You can use your own daemon, process, script. If it's not enough and you need more features use that Hangfire which is looking solid.
I am using hangfire in production for almost 3 years, and yes this is a great way, retry policy from out of the box, UI dashboard, but extra options can be like this:
Serverless (Azure function, AWS Lambda)
AWS SQS or Azure Queue + Hosted services docs
Another option I've found is to implement IHostedService, a built-in interface in ASP.Net Core. See this page for details.

Missed Call in Lync/Skype database?

In our company, we use Lync/Skype for Business. In the database, is there a way to know whether a call is missed?
For example, a customer called the support number, but for certain reason, the call is not pickup, is there a way to find this call info by query Lync/Sfb database?
Or, Lync/SfB will not log info in this case?
Thanks
It depends on the "Call" did you refer here to a PSTN call? If thats a simple VOIP call then a so called peer2peer call might happen here which didnĀ“t involved the Skype for Business (=SfB) / Lync server as this is done between both SfB clients without the server.
I think a good step might be to check whats currently possible with the build in Monitoring Reports in Skype for Business Server (see here as starting point).

Synchronous transactions in Cordova SQLite Plugin lite4cordova

I'm looking for a way to execute synchronous transactions with the lite4cordova plugin and can't find any example.
In the plugin's webpage there are a lot of example of asynchronous transactions, but can't find one so far.
Can anyone give me an example of how to execute a synchronous transaction? is it even supported by the plugin?
Every transaction on database has been run on a separate thread that why they implemented it in this way. All Transaction on lite4Cordova are asynchronous. If you want to make it synchronous you have to understand the native code in case of android the Java code of the plugin has to be changed.

Resources