python - create celery task, but don't run until explicitly called later -
my use case users can edit article. if user not original author notification asks author permission. if author agrees update goes ahead.
i considering creating celery task aimed @ running update function - task can either run when author agrees, or deleted if author dismisses change.
is use of celery? concerned using "queue" meaning celery better used on fifo/lifo basis, rather calling jobs id.
is use case celery tasks? if nay, better idea?
to confirm in pseudocode:
when user suggests update:
task_id = my_task.delay_execution_until_called_by_id(*args)
when owner accepts:
get_task_by_id(task_id).run()
Comments
Post a Comment