Search code examples
pythonsingletonjob-schedulingluigi

How to create singleton task in Luigi?


I need to run once a day task A. At 0:00:00 for specificity. But task execution can take more then 24 hours. In this case, I should not rerun the task - I should skip execution.

How can I implement such singleton task in Luigi?


Solution

  • erikbern commented on 27 Aug 2015 at GitHub:

    Tasks are already singletons (instantiated with the same parameters).