Questions tagged [scheduled-tasks]

1

votes
2

answer
99

Views

Using .bat file and task scheduler for execution of .vbs file [duplicate]

This question already has an answer here: How to set recurring schedule for xlsm file using Windows Task Scheduler 5 answers My Below Code is Running properly. 1.) Can someone help me know how to use task scheduler to schedule this VBS file? 2.) Also i would like to understand writing the .bat fil...
Kaustubh Ursekar
1

votes
2

answer
5.9k

Views

Can't close Excel App with vba in a scheduled task

I have made a code in vba which works with different Workbooks and Worksheets. This code must be execute in a scheduled task. But for an unknow reason I have a problem with it : When I execute it manually, it works fine and excel closes itself. But with my scheduled task, Excel closes all Workbooks...
Adrien A.
1

votes
1

answer
98

Views

How to loop a function for a period of time

Trying to loop a function for a specific period of time, bear in mind the function takes about 20 seconds to finish executing. There's obviously the option of using something along the lines of: long startTime = System.currentTimeMillis(); long length = 30000; while(System.currentTimeMillis() - star...
a.khaled
1

votes
0

answer
46

Views

Scheduling/Queueing Tasks Django/Celery

I'd like to add a scheduling option to allow user to manually input a date and time that would delay their post to be published to that specific date/time. So if the user uploads five posts in one day but only wants to publish one per day, then they could input a specific date and time for each post...
Glenn G.
1

votes
0

answer
296

Views

Issue in laravel 5.5 task scheduling with cron job, command handle function not called

**this is Kernel.php** namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Support\Facades\Log; class Kernel extends ConsoleKernel { protected $commands = [ '\App\Console\Commands\SendNotificationLoginTrack'...
Aamir Mir
1

votes
0

answer
186

Views

Recon events are not generated for trusted reconciliation

After running scheduler recon events are not generated but the status of scheduler shows 'success' Log shows the below error : ORACLE.IAM.CONNECTORS.ICFCOMMON.RECON.SEARCHRECONTASK oracle.iam.connectors.icfcommon.recon.SearchReconTask : handle : Recon event skipped java.lang.ClassCastException: jav...
Sairu
1

votes
1

answer
90

Views

Android Fall Detection Issue

I'm trying to implement a simple fall detection algorithm using android's accelerometer. The current acceleration of the phone is stored in mAccel and if a sudden shake is detected Timer t begins. Inside the Timer are two CountDownTimers. The firstTimer is used to register a 'fall' if the user hasn...
Xenofonos
1

votes
0

answer
189

Views

Solution to periodically send data from iOS 11 to server

I have a requirement to periodically send back some data from the mobile app to my backend server. I have written my mobile application in 2 versions: Android and iOS. For the Android version, it's ok since I can schedule a task in the background to send the data. But for iOS, especially the iOS 11...
xtiger
1

votes
1

answer
31

Views

Spring scheduled work at 21:30 gmt+3

I'm trying to trigger a method with spring @Scheduled . I thought i should use zone but nothing happens. By the way I'm increasing minute like 30,31,32 for test also tried for gmt+2 and gmt+3. This is the annotation i try--> @Scheduled(cron = '0 30 21 * * * ' , zone='Europe/Moscow') Anyone know wh...
guney
1

votes
1

answer
244

Views

Creating Scheduled Task from MVC sometimes fails via LocalService user

I'm creating a Windows Scheduled Task from a MVC app # by using the c# TaskService namespace. It normally works fine if the IIS AppPool is set to run as the LocalService user, but every now and then we find a server where it fails to create the Scheduled Task. If we change the AppPool user to a loc...
Cameron Castillo
1

votes
1

answer
279

Views

.Net / Asp.Net Web api Background Tasks

I am looking for an options to execute recurring background tasks. The background Task would call the external REST GET request and update the status accordingly in the application database. Which one of the following would be appropriate, considering that we do not like to maintain separate web.con...
Balaji
1

votes
0

answer
84

Views

Are there any task/job scheduler as a cloud service?

My application need a cloud service that will schedule tasks at specific time which will trigger an API call with given parameters. It will be better if the cloud service capable to add many task(~2million/hour) for the next 7 day. I already searched it, but unable to find one. It's okay if it's on...
Karsten Ari Agathon
1

votes
0

answer
89

Views

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 timezone even if the timezone was set on the Cron Trigger. pri...
user2549686
1

votes
2

answer
100

Views

Is there any way to implement scheduled task on < 21 API?

I am newbie with android and I want to perform task only on some conditions. I have read about Job Scheduler and see the tutorial by the Vogella.In that the mention Job Scheduler introduced in API 21. I have searched for what are the similar options that can be used for API < 21 and found the gcmNet...
Ravi Patil
1

votes
1

answer
428

Views

Laravel 5.5 Cron Job proc_open and ArgvInput problems

There is a problem. I am trying to do a cron job for the laravel project. In cPanel php /home/mykaskco/mykask/artisan schedule:run >> /home/mykaskco/public_html/site/log/log.txt when I run this command, In ArgvInput.php line 264: Invalid argument supplied for foreach() I get this error. in stack...
T.Arslan
1

votes
0

answer
499

Views

How to schedule Python script to run hourly, from the script itself

I have a Python (2.7) script I need to run once every hour, every day. I found two main ways to do this, both won't work for my needs: Sleep based solution - I've seen examples that will basically open a thread that loops indefinitely, and sleeps for an hour in between. That won't work because I can...
Rick M.
1

votes
0

answer
122

Views

Why is gocron executing multiple times?

I am trying to build a service that executes on a cron schedule. I am trying to use gocron (https://github.com/jasonlvhit/gocron). My code looks like below: func taskWithParams(a int, b string) { fmt.Println(a, b) } func GetSchedules() { s := gocron.NewScheduler() //Retrieve the schedules from Dyanm...
user3464189
1

votes
1

answer
255

Views

Quartz with centralized scheduling and monitoring

We are trying to revamp our batch job scheduling and monitoring process over the entire enterprise. Currently all our batch jobs are scheduled using Unix crontab and are monitored using log files generated by shell scripts. This process has lot of disadvantages and as the number of applications grow...
1

votes
2

answer
83

Views

Spring - schedule task in some period of time

Currently I'm using Spring annotation to schedule my task every 20 minutes: @Scheduled(fixedRate = 1200000) I want to change schedule that my task will execute only between 2AM and 5AM (still every 20 minutes). Is it possible with Spring Scheduler? Or are there any best practices to solve this prob...
Tomasz
1

votes
1

answer
85

Views

Why can't classes that use EJB @Schedule be abstract Classes?

I need to schedule a task and I'm using EJB @Schedule to do so. It's working fine, however I thought I might try to generalize my design so that I can extend from some abstract scheduler, inherit certain functionality, and specify additional functionality in the sub classes extending the abstract cl...
Elroy Jetson
1

votes
0

answer
117

Views

shortcut for scheduled task not working

In my Windows 10 Task Scheduler Library I have a folder called UAC BYPASS. In that folder I have a task call Cmder. If I right click on that task it runs a s expected. I've created a shortcut with this target: C:\Windows\System32\schtasks.exe /RUN/TN 'UAC BYPASS\Cmder' However when double clicked...
DCR
1

votes
0

answer
415

Views

access denied when create task schedule in c#

i want to create a schedule task in root folder . this is my code using (TaskService ts = new TaskService()) { TaskDefinition td = ts.NewTask(); td.RegistrationInfo.Description = 'notepad'; td.Principal.UserId = System.Security.Principal.WindowsIdentity.GetCurrent().Name; td.Principal.LogonType = T...
khosravi
1

votes
1

answer
192

Views

Implement account service, rest template to use an async task

I'm trying to implement the Service Accounts using Keycloak and Spring boot, to secure an async scheduled task. I think I need it beacuse otherwise I don't have the credential to access to my service. Here the guide of keycloak: https://www.keycloak.org/docs/latest/server_admin/index.html#_service_a...
Droide
1

votes
0

answer
101

Views

Scheduled tasks not working when run on remote instance

I have a AWS ec2 windows server running. I have a powershell script running to schedule a task to hourly run a program that generates a report, and collect it in a folder. When this task is manually run by clicking through the scheduler, the output comes out fine. But, when I run my script to run it...
Navi-Automator
1

votes
1

answer
42

Views

Python Start function at a given time: Using time.sleep()

I'm using a = datetime.now() b = datetime(2018,4,26,00,7,00) time.sleep((b-a).total_seconds()) to start my script at a given time, but I want to change it. Instead of using datetime() I want to use the module time because the year, month and day is irrelevant for me. I also want to ask for the star...
Julian
1

votes
0

answer
53

Views

Push results of one to another job django-rq

I'm building an application in which users' information are frequently updated from external APIs. For that, I'm using django-rq. The first job is scheduled once a day to get users who need to update their profiles. With each result returned by the first job, schedule another job to get new user inf...
erik
1

votes
0

answer
105

Views

How to schedule task weekly using firebase job dispatcher?

I have implemented the firebase dispatcher as following- public Job createJob(FirebaseJobDispatcher dispatcher){ return dispatcher.newJobBuilder() //persist the task across boots .setLifetime(Lifetime.FOREVER) //.setLifetime(Lifetime.UNTIL_NEXT_BOOT) //call this service when the criteria are met. .s...
1

votes
0

answer
68

Views

Pipeline scheduled scripts in Google Apps scripts

I have two scripts Script_A and Script_B running underlying queries in Bigquery. I want to schedule Script_A using time scheduler (that I know) but I want Script_B to run when Script a successfully(or unsuccessfully will work as well) completes. Any way to make this event based trigger in Google App...
Awais Kaleem
1

votes
0

answer
199

Views

Why result in django RQ become : pickle data was truncated?

I can't figure out whats wrong in my code. I want to defer queryset to django rq, please help me this is my code: views.py class PartnerCatalogueView(generic.ListView): ''' Browse all products in the catalogue based on vendor ''' template_name = 'catalogue/vendorku.html' # paginate_by = 9 model = Pr...
takeiteasy
1

votes
0

answer
156

Views

schtasks returns error 5 with admin rights

I have been trying to execute this short code as Administrator with PowerShell and CMD but I got the same result with error 5. Code: String createTask = 'C:\\Windows\\System32\\schtasks.exe /Create /SC ONSTART /TN \'Test\' /TR \'java -jar \\\'C:\\Users\\Christophe Rillos\\Desktop\\Test.jar\\\'\''; t...
1

votes
1

answer
78

Views

Design Considerations Using Springs `@Scheduled` and `@Async` Together

I have some questions about using Spring's @Scheduled and @Async functionality together. Lets say my requirement is to process 5 rows from a DB every 1 second, so in 1 pass of the scheduler thread would create 5 asynchronous threads to process each row from a Database. My questions are as follows...
Orby
1

votes
1

answer
52

Views

Scheduled reports using java/postgres

I have a form (which permits to give a periodicity, a frequency, a start date etc.. in the goal of schedule a postgres query task and then send emails (each week, month.....)) in my web application and I would like to know what is the best solution to schedule these queries. I tried to use a simple...
Lexahen
1

votes
0

answer
101

Views

How to properly run multiple tasks using one worker in heroku and ruby on rails

I'm trying to run many (over 20) tasks in Heroku every minute simultaneously, but I'm pretty sure I'm not doing it correctly. I'm currently using the Standard-1X dynos with 512 MB RAM. I'm pretty sure I should be able to achieve my goal without having to upgrade heroku. My solution kind of works, bu...
apuente
1

votes
1

answer
270

Views

How to create custom scheduler in sugarcrm?

I am trying to create custom scheduler in sugarcrm using its documentation in http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Job_Queue/Schedulers/Creating_Custom_Schedulers/. I have created job label in path ./custom/Extension/modules/Schedulers/Ext...
Sunlight
1

votes
0

answer
702

Views

Batch file runs fine but not in Task Scheduler

Afternoon everyone, I've tried to research this topic in depth and I cannot come to a conclusion for my problem. I'm trying to automate a batch file in Task Scheduler to execute two SSIS packages. Currently when I attempt to execute the scheduled task (either waiting for its set schedule or running...
Travis Simmers
1

votes
0

answer
182

Views

VBScript hangs when started from the Task Scheduler

My VBScript working if I run it manually or I run it with Task Scheduler with from current logged-in user, but it's not working if I set 'run whether user is logged or not'. I'm running vbs script from cmd file. Cmd and vbs both laying at local machine, from where I run the task at the same shared f...
Bobi K
1

votes
1

answer
226

Views

Django: Send reminder email

my app has list of events with start time (date and time). I want to make a scheduled task to send reminder via email to all user participate in event 1 hour before event start. (Note: Admin can change time of event). I currently use celery to send email to list of participants when admin change the...
1

votes
0

answer
172

Views

assign permission to group managed service account

I have been advised that it is better to run a scheduled task as a Group Managed Service Account (gMSA) rather than as a domain user account. I can find plenty of information about how to create the gMSA, and how to configure the scheduled task to run as that gMSA, but all of the tutorials and train...
Cam
1

votes
1

answer
52

Views

PHP ftp_connect doesn't responds from batch file in scheduled task

I have a PHP script that synchronize a local directory with a remote one ... [...] $ftp = new Ftp('11.222.11.222', 'the_user', 'the_pass'); $ftp->syncFolder('userfiles/project', '/web/userfiles/project', true); [...] And a Class class Ftp { public $conn; private $url; private $user; private $passwor...
Aston
1

votes
0

answer
99

Views

How to create a one-time ManagedScheduledExecutorService trigger

I'd like to create a single-shot (one-time) trigger for a delayed task leveraging the ManagedScheduledExecutorService in JEE7. Following the sample in the javadoc, I've created a Trigger with a fixed timestamp that I was hoping would trigger a single time and automatically be removed from the sched...
Eric B.

View additional questions