- class CveXplore.core.celery_task_handler.task_handler.CveXploreEntry(RedBeatSchedulerEntry)[source]
CveXploreEntry class is used to create new tasks in the backend; it inherits from RedBeatSchedulerEntry and overwrites the save method. By default, the RedBeatSchedulerEntry uses the same redis parameters as the celery daemon it facilitates. By overwriting this method the possibility is created to use different redis connection parameters then the celery daemon.
Constructors¶
-
CveXploreEntry(name: str | None =
None
, ...)[source] Create a new instance of CveXploreEntry.
Public members¶
-
args =
None
Positional arguments to apply.
- static decode_definition(definition)[source]
-
static decode_meta(meta, app=
None
)[source]
- property due_at
- property key
-
kwargs =
None
Keyword arguments to apply.
-
last_run_at =
None
The time and date of when this task was last scheduled.
-
static load_definition(key, app=
None
, definition=None
)[source]
-
name =
None
The task name
-
options =
None
Task execution options.
- property rank
- property score
return UTC based UNIX timestamp
-
total_run_count =
0
Total number of times this task has been scheduled.
Helper methods¶
- __reduce__()
Helper for pickle.
Comparison operators¶
-
__ge__(other, NotImplemented=
NotImplemented
) Return a >= b. Computed by @total_ordering from (not a < b).
-
__gt__(other, NotImplemented=
NotImplemented
) Return a > b. Computed by @total_ordering from (not a < b) and (a != b).
-
__le__(other, NotImplemented=
NotImplemented
) Return a <= b. Computed by @total_ordering from (a < b) or (a == b).
Iterators¶
-
__next__(last_run_at=
None
, only_update_last_run_at=False
) -
next(last_run_at=
None
, only_update_last_run_at=False
) Return new instance, with date and count fields updated.
String representation¶
- __repr__()
Return repr(self).
-
CveXploreEntry(name: str | None =
Last update:
Aug 11, 2024