Scheduled Task is Active but Doesn't Run

Hello all,

I am testing to see if I can import EDI demand into our upgraded 10.2 test environment. I believe I have the scheduled task set up properly to run every 30 minutes. It even tells me it has already run once since I’ve set it up:

But the task never pops up in the system monitor and doesn’t appear to ever run.

I have restarted the task agent and app pool and still…nothing.

Any thoughts?

Thanks,

Alice

I would first go to the event viewer on the server for the task agent and see if any errors are listed.

1 Like

Was it your user that that scheduled the task? Does it show if you select Show All Tasks?

I also do not see a triangle net to your Hourly Direct Import EDI schedule, which leads me to believe the process has not been setup yet.

1 Like

Alice,

Everything looks to be setup correctly for the schedule, but it looks as though you have not actually submitted a Task to that schedule. IF you look below, the schedule is expanded to show tasks. Once you do this, I think you will see the actually you want to see in the Task Agent.
image

PS - all those immediate run requests that have no tasks - you can delete them from the Agent.

2 Likes

Wow, I guess there isn’t a task associated with it. In production, the task looks like this:

Where are tasks maintained? I went to task maintenance in production, as a reference, but there doesn’t seem to be anything in there.

Thank you all for your responses.

alas, it does not. But it seems there is no task associated with the schedule…so I guess I’m on a learning curve.

Creating a Sys Agent schedule does nothing more than make it appear in the list of available schedules on the report or process forms:

After you’ve made the schedule, select it from the list on the process window. Don’t forget to check the recurring box if you want it to run more than just once. And I suggest adding a comment in the User Description

1 Like

Also …

The “Last Run On” just means the last time the schedule fired. But since your’s has no tasks, it “fired” - doing nothing more than just setting the next run on date and time.

1 Like

Thank you! I was approaching this all wrong but I see the error of my ways! I now see where I can submit my EDI task to agent and specify schedule:

image

Thank you all, you are awesome.

1 Like

I was just reading the Help entry for Import EDI Demand Process, and something doesn’t seem clear. Hopefully an expert will chime in on this…

The process can be configured for “Continuous running”, with a Processing delay. The help says:

  1. Select the Continuous Processing check box if you want the Import EDI Demand Process to run continuously in the background, and enter the Continuous Processing Delay .

That seems like it only requires being submitted once (and not on a schedule). And would continue to run in the background (not sure how one would stop it).

Where as you scheduling it, would have it run at the scheduled time and then stop. And then not run again until the next scheduled time (30 minutes later) in your case.

I’d have though that you need to just submit the Import EDI Demand Process with:

  • Continuous Processing: checked
  • Continuous Processing Delay: 30
  • Schedule: Now
2 Likes

Calvin - you could do it either way. Having it run every 30 minutes on an interval schedule is the same as continuous with a 30-min delay.

So yes, Continuous processing checked, set for 30 min, submit via ‘Now’ works, but ALSO submit via a 'Startup" schedule - that way it’ll get queued everytime the Task Agent restarts.

For EDI, I might do the continuous but on a 5 minute delay instead - so things come in almost in real time and the 30 minutes mark doesn’t accumulate a bunch of things that need to be processed. The more it queues, the more you have to fix if it messes up.

2 Likes

How do you turn it off if you use the Continuous Processing, with Schedule “Now”?

And does anything appear in the SysMonitor (beyond the initial submission)?

If you do a submit via “now” it will simply stay ‘active’ in System Monitor but only process on your interval. To turn it off, you cancel that task from System Monitor.

When you submit via ‘startup’, the task will not be submitted for processing until the schedule triggers. So anything you want to run all the time (eg - Global Alert processing, or Multi-company Synch, or Enterprise Configurator Direct Synch) needs to be submitted both ways.

2 Likes

Also be aware some processes have problems with Continuous Processing. Multi-Company Direct server process being one of those. I would try it both ways, but keep an eye on the Continuous if you decide on that method.