Skip to main content
avillanueva
23-Emerald I
23-Emerald I
September 13, 2023
Solved

Use of WVS Scheduler Administrator for non-WVS related tasks

  • September 13, 2023
  • 1 reply
  • 2229 views

I cannot see why not but let me know if anyone has used the WVS Scheduler Administrator for other administrative tasks other than publishing and WVS. I have a sync task were I need to connect to an outside database and compare data to objects in Windchill. Seems to be the perfect vehicle to create the jobs, schedule it and monitor its execution. Assuming other scheduler tasks are defined in a similar manner, is there a more recommended method of hooking them in or kicking them off?

Best answer by d_graham

@avillanueva I hear you loud and clear.

The way I do this is by writing and class that I run from a Windchill shell.

The class creates a queue entry that is scheduled to run at a pre-determined time.  When that time comes the class runs and does whatever it was designed to do.  The very last thing the class does before completing is it creates another queue entry to run at the next pre-determined time, and so on.

 

Using this technique, I have full control over the execution time and frequency.

 

So, you could do this to connect to the external dB and run the code that compares the dB tables and columns.

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
September 14, 2023

Hi @avillanueva 

Good idea but for some new staff it can be confusing if WWS Scheduler can do different work. 

I like your idea. 

 

I usually create own page, where I control custom tasks that I send to custom queue.

 

For example delete utility for visualization 😄

HelesicPetr_0-1694670130721.png

 

PetrH

avillanueva
23-Emerald I
23-Emerald I
September 14, 2023

At one point I saw a way to kick off a scheduler job via command line. I guess your UI and the WVS schedule are doing the same thing. Your UI seems dedicated to that visualization delete job.  What's needed is something exactly like the WVS scheduler but where you can control the execution time, frequency, job type and possibly the queue it runs in.

d_graham18-OpalAnswer
18-Opal
September 14, 2023

@avillanueva I hear you loud and clear.

The way I do this is by writing and class that I run from a Windchill shell.

The class creates a queue entry that is scheduled to run at a pre-determined time.  When that time comes the class runs and does whatever it was designed to do.  The very last thing the class does before completing is it creates another queue entry to run at the next pre-determined time, and so on.

 

Using this technique, I have full control over the execution time and frequency.

 

So, you could do this to connect to the external dB and run the code that compares the dB tables and columns.