How can i cancel a cron task on ignite server node? - cron

I have deployed a cron task on an ignite server node , how can i find id and cancel it from another client node ?
I just find SchedulerFuture has cancel method (IgniteFuture) . but when the client node closed and the cron task running on a server node , how can i cancel it ?

I'm afraid there is no such API in Ignite, and personally I don't recommend using ignite-scheduler, since it is not under active development.

Related

node-cron tasks terminated after restart the server

The project in which I am working completely dependent on cronjobs functionality like firebase push notification 1 day before the subscription expires. the problem is when I restart the server all cron jobs are terminated. how can I solve this
Save your cronjobs to database, and use only values in database or defaults?
Use Agenda.js & Agendash .
Npm install agenda agendash
Agenda save your jobs in database & triggered even you reboot your server . Agendash give you a dashboard for monitor or test your schedule jobs

SLURM: How to submit a job to a remote slurm cluster from another server?

I have the main server-'A' hosting the SLURM cluster. The set up is working fine as expected.
I wanted to know if there is a way to submit the jobs to that main server from another server- 'B' remotely and get the responses.
This situation arises because I don't want to give access to the terminal of the main server- 'A' to the users on 'B'.
I have gone through the documentation and FAQs, but unfortunately couldn't find the details.
If you install the Slurm client on Server B . Copy your slurm.conf to it and then ensure it has the correct authentication (i.e the correct Munge key) , it should work.

Detecting the end of an Azure Batch job

In my application I create an Azure batch job. It's a Node app and I use an azure-batch Node client, but I could also be using REST, I don't think it matters. I can't switch to a C# client, however.
I expect the job to be completed in a few seconds and I wish to pause the code until the batch job is over but I am not sure how to detect the end of the job without polling the Job Status API. Neither the Node client nor the REST API exposes such functionality. I thought I could maybe register for an event of some sort but was not able to find anything like that. There are job release tasks but I am not sure if I can achieve this using them.
Any ideas how the end of an Azure batch job can be detected from within my application?
One way to do this is once you add your tasks to the job, set the job's onAllTasksComplete property to 'terminatejob'.
Then you can poll the Job-Get API, and check the state property on the job for when the job is complete (https://learn.microsoft.com/en-us/rest/api/batchservice/job/get#jobstate or https://learn.microsoft.com/en-us/javascript/api/azure-batch/job?view=azure-node-latest#get-string--object-).

No Mongo Query gets result when cron is running in background

I have been NodeJS as server side and MongoDB as our database. It really works great together.
Now I have added node-schedule library into our system , to call a function like a cron-job.
The process takes around hours to complete.
My issue is whenever cron is running , all users to my site gets No response fro server i.e database gets locked.
Stuck on the issue from a week , needs good solution to run cron , without affecting users using the site.
Typically you will want to write a worker and run the worker in a different entry point that is not part of your server. There are multiple ways you could achieve this.
1) Write a worker on another server to interact with your database
2) Write a service worker on another server that interacts with your api
3) Use the same server but setup a cronjob to execute the file that does the work at a specified time.
But you should not do this from the same entry point that your server is running on. You need a different execution file.
There is one thing you can do to run this where it will not bog down your server and that would be for your trigger for node-schedule to run a child process. https://nodejs.org/api/child_process.html

How to assign Spark Thrift server connection to queue

I would like to establish 2 connections to one Spark Thrift Server for each development and QA. These two connections should be passed through 2 independent queues.
To achieve above, I set below properties from beeline when connecting Thrift server.
1) mapred.job.queue.name
2) spark.yarn.queue
Connection URL: jdbc:hive2://host:port?mapred.job.queue.name=queue_name
And, executed queries from beeline with above URL. However, I could not able to verify that query is executed with right queue.
Please help.
Thanks,
Sravan
You can check the YARN ResourceManager UI, every application running on top of YARN will be displayed there, also you can use the yarn application -list command line to verify which queue is the app assigned to.

Resources