MCPcopy Create free account
hub / github.com/celery/celery / update

Method update

celery/beat.py:155–165  ·  view source on GitHub ↗

Update values from another entry. Will only update "editable" fields: ``task``, ``schedule``, ``args``, ``kwargs``, ``options``.

(self, other)

Source from the content-addressed store, hash-verified

153 )
154
155 def update(self, other):
156 """Update values from another entry.
157
158 Will only update "editable" fields:
159 ``task``, ``schedule``, ``args``, ``kwargs``, ``options``.
160 """
161 self.__dict__.update({
162 'task': other.task, 'schedule': other.schedule,
163 'args': other.args, 'kwargs': other.kwargs,
164 'options': other.options,
165 })
166
167 def is_due(self):
168 """See :meth:`~celery.schedules.schedule.is_due`."""

Callers 3

update_from_dictMethod · 0.45
merge_inplaceMethod · 0.45
setup_scheduleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected