Questions tagged [crontrigger]

Use ConTrigger if you need a job-firing schedule that recurs based on calendar-like notions

ConTrigger class from Quartz Job Scheduling Library allowing you to create

"job-firing schedule that recurs based on calendar-like notions, rather than on the exactly specified intervals of SimpleTrigger."

To find more information :

206 questions
1
vote
1 answer

How to stop one specific instance of a Coroutine

So I have an OnTriggerEnter function that removes health every second usig a Coroutine. I want to stop it with a OnTriggerExit function and StopCoroutine. While this works with only one gameObject, it breaks with multiple colliders since it always…
Filip cz
  • 19
  • 2
1
vote
1 answer

Azure Cron Schedule to trigger every second week on Monday (trigger one Monday and not the other, repeat)

Is it possible to schedule a function in azure to run every second week on a specific day of the week, example Monday? Or at least to run on the first Monday of every month? I try something like 0 0 1-7,15-21 1 * 1 but it runs on every 1-7 and 15-21…
Ricard
  • 153
  • 1
  • 11
1
vote
1 answer

Why am i getting "Trigger's related Job's name cannot be null" error in quartz

I'm getting this error, even though i'm specifying a name, group and description for my job, and in the debugger i can see values for all these fields in the detail variable. JobDetail detail = getDetail(); Trigger newTrigger = getTrigger( detail…
rediVider
  • 1,266
  • 2
  • 13
  • 30
1
vote
4 answers

How to execute gcloud command in bash script from crontab -e

I am trying execute some gcloud commands in bash script from crontab. The script execute sucessfully from command shell but not from the cron job. I have tried with: Settng the full path to gcloud like: /etc/bash_completion.d/gcloud …
1
vote
1 answer

Scheduled trigger in Azure Pipeline multistage for a spesific stage

I have a multistage pipeline on Azure DevOps, and I would like to trigger one of the stages every night but the other stages would be triggered by changes in GitHub repo. I'm wondering if it is possible to use scheduled trigger for only one Stage,…
Matrix
  • 2,399
  • 5
  • 28
  • 53
1
vote
1 answer

Getting "cannot convert from TriggerBuilder to Trigger" while running simple Quratz tutorial program

I am new to java Quartz scheduling and have been trying to run a simple quartz program from a youtube tutorial. This is the code I tried : public class drive1 { public static void main(String[] args) throws SchedulerException { …
Zeus
  • 319
  • 2
  • 13
1
vote
0 answers

Liferay: Migrating CronTrigger from 6.2 to 7.1

I want to migrate a class from 6.2 CE to 7.1 DXP. In the 6.2 version of the functionality i want to migrate uses CronTrigger of the package com.liferay.portal.kernel.scheduler. I cannot find a substitution for that in 7.1, could it be that this…
Laurenz Honauer
  • 254
  • 1
  • 12
1
vote
2 answers

Jenkins scripted pipeline to trigger job only when commits happen in Github

We use CloudBees-2.138.2.2 Jenkins and have had lot of challenges to trigger jenkins jobs only based on commits in our Github repo. I am still looking for the exact working script for scripted pipeline and not declarative one. so For example :-…
Ashley
  • 1,447
  • 3
  • 26
  • 52
1
vote
1 answer

How to trigger cron Job from Dot Net Core API/ C# Application?

I am having the following use case. We already have a cron job deployed on a Linux server which runs continuously. Now we need to trigger this job on-demand/ some button click event/ through API. For example, we have a screen to get the export…
rajk
  • 221
  • 3
  • 19
1
vote
1 answer

Access APScheduler cron trigger field values in python

Similar to this question I want to extract the info of a cron job trigger from APScheduler. However, I need the "day_of_week" field and not everything. Using for job in scheduler.get_jobs(): for f in job.trigger.fields: print(f.name + " " +…
mike
  • 791
  • 11
  • 26
1
vote
0 answers

Batch Job RE-scheduling using Java , CronExpression

I have a job running which runs on a particular time every day. I have to update the CronExpression of the Job using some logic, problem is once the CronExpression is update I have to reStart the server to run that job with new time. How can I…
1
vote
1 answer

Scheduling Google App Script function for specific recurring windows

I'm trying to schedule an Apps Script function. I need the email to trigger Mon-Sat every 2 hours starting at 11am-9pm. I've written the following code to create triggers for each day: function createTriggers() { var days =…
S1ick1
  • 31
  • 1
  • 4
1
vote
0 answers

Quartz CronTriggerImpl computeFirstFireTime trigger timezone

As per the Quartz code in CronTriggerImpl, public Date computeFirstFireTime(org.quartz.Calendar calendar) { nextFireTime = getFireTimeAfter(new Date(getStartTime().getTime() - 1000l)); This ignores the timezone field and uses the system…
1
vote
1 answer

Quartz CronTrigger firing itself many times

I'm trying to implement a CronTrigger using the quartz api, it works but not so good, when the cron expression it's reached, the job executes infinitely, and i don't know why. I just want to execute it 1 time when the cron expression will…
1
vote
1 answer

How to restrict cron trigger executed a job only once when fired in quartz scheduler

In my quartz scheduler my Main class is executed 5 or 6 times when a cron trigger firedin every 20 seconds.I want to restrict to execute Main class only once when cron trigger fired in every 20 seconds This is my CronTrigger SchedulerFactory sf =…
Arav KT
  • 301
  • 6
  • 18