Another thing you can do is use chained tasks. You can specify an ETA for tasks, then, on task execution, set up another ETA. You'd also want to name the tasks so it doesn't become duplicated.
-- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Fri, Nov 19, 2010 at 4:25 AM, Didier Durand <[email protected]>wrote: > Hi Andrew, > > If no direct api is possible (i think it isn't), you can at least > access web.xml, cron.xml, etc. via following code (presented as a > junit test) and then read its content to parse it and find the jobs in > your case. > > @Test > public void testReadWebXml() { > String filename = "/WEB-INF/web.xml"; > if (Util.runningInEclipse()) { > filename = "war" + filename; > } > File file = new File(filename); > assertTrue(file.exists()); > } > > I don't think you can rewrite it though. Why not store flags in the > datastore to tell a job if it should run or not if you cant rewrite > the file? > > regards > > didier > > On Nov 19, 12:25 pm, andrew <[email protected]> wrote: > > Is it possible to access cron job scheduling programmatically from the > > app engine Java API? > > > > I wanted to have a servlet/task/cron be able to read the list of > > scheduled cron jobs and to disable/delete one so that it is no longer > > run in the future. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
