Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1710 (closed enhancement: fixed)

Opened 10 years ago

Last modified 9 years ago

[PATCH] one-time task scheduler

Reported by: khorn Owned by: Chris Arndt
Priority: normal Milestone: 1.1
Component: TurboGears Version: 1.0.4.2
Severity: normal Keywords: needs documentation
Cc:

Description

from the trunk mailing list: (posted by Daniel Fetchison)

Hello tg people, here is a small patch (against the 1.0 branch trunk)
that allows one to schedule one-time tasks via the
turbogears.scheduler.add_onetime_task function. It's basically the
same as interval_task but doesn't reschedule. I found this to be
useful for starting long running processes when the client is not
required to wait for the result.

BTW, is this list the right place for submitting patches?

Cheers,
Daniel

Attachments

onetime.patch Download (3.5 KB) - added by khorn 10 years ago.
patch to add turbogears.scheduler.add_onetime_task function
scheduler-singletask.patch Download (4.4 KB) - added by Chris Arndt 10 years ago.

Change History

Changed 10 years ago by khorn

patch to add turbogears.scheduler.add_onetime_task function

comment:2 Changed 10 years ago by fetchinson

The patches on ticket/1709 and ticket/1710 are slightly different, the one on 1709 uses the names SingleTask?, etc, and add_single_task while the 1710 patch has OnetimeTask?, add_onetime_task, etc.

I would actually prefer the former, SingleTask?, add_single_task.

Changed 10 years ago by Chris Arndt

comment:3 Changed 10 years ago by Chris Arndt

  • Keywords needs review added

I added a new patch againgst branch 1.1 r4092 with the name changes from #1709 and PEP-8 compliant cleanup.

comment:4 Changed 9 years ago by faide

  • Milestone changed from 1.5 to 1.1

comment:5 Changed 9 years ago by faide

  • Status changed from new to closed
  • Resolution set to fixed

Applied in r5455, Thanks Daniel.

comment:6 Changed 9 years ago by Chris Arndt

  • Keywords documentation. added; review removed
  • Status changed from closed to reopened
  • Resolution fixed deleted

Re-opening this because we need to add documentation for it. I'll create an extra documentation ticket for this when I have time.

Also the ChangeLog should mention this a new feature.

comment:7 Changed 9 years ago by Chris Arndt

  • Status changed from reopened to new
  • Owner changed from anonymous to Chris Arndt

comment:8 Changed 9 years ago by Chris Arndt

  • Status changed from new to assigned

comment:9 Changed 9 years ago by Chris Arndt

  • Status changed from assigned to closed
  • Keywords documentation added; documentation. removed
  • Resolution set to fixed

The documentation task is now #1994.

Note: See TracTickets for help on using tickets.