scheduler_sql_status_flag¶
-
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 instatus
column. there’s aedit_at
datetime column, represent the last time the row been edited.Note
Any value greater or equal than
duplicate_flag
, AND theedit_at
time is smallerupdate_interval
seconds ago, means it is a duplicate item.Parameters: - duplicate_flag – int, represent a status code for finished / duplicate
- update_interval – int, represent need-to-update interval (unit: seconds)