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]
default_now()
delete()[source]
property due_at
editable_fields_equal(other)
classmethod from_key(key, app=None)[source]
is_due()[source]

See is_due().

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]
static load_meta(key, app=None)[source]
name = None

The task name

options = None

Task execution options.

property rank
reschedule(last_run_at=None)[source]
save()[source]

Save the task to the backend of CveXplore.

schedule = None

The schedule (schedule)

property score

return UTC based UNIX timestamp

total_run_count = 0

Total number of times this task has been scheduled.

update(other)

Update values from another entry.

Helper methods

__reduce__()

Helper for pickle.

Comparison operators

__eq__(other)

Test schedule entries equality.

__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).

__lt__(other)

Return self<value.

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).


Last update: Aug 11, 2024