class pytq.scheduler_sql_status_flag.SqlStatusFlagScheduler(logger=None, uri=None, table=None, duplicate_flag=None, update_interval=None)

Similar to SqlScheduler.

New Feature:

There’s pre-defined integer - duplicate_flag, will be stored in status column. there’s a edit_at datetime column, represent the last time the row been edited.


Any value greater or equal than duplicate_flag, AND the edit_at time is smaller update_interval seconds ago, means it is a duplicate item.

  • duplicate_flag – int, represent a status code for finished / duplicate
  • update_interval – int, represent need-to-update interval (unit: seconds)