gwcelery.tasks.first2years module

Create mock events from the “First Two Years” paper.

gwcelery.tasks.first2years.pick_coinc()[source]

Pick a coincidence from the “First Two Years” paper.

(task)gwcelery.tasks.first2years._vet_event(superevents)[source]

Proxy that evaluates object once.

Proxy will evaluate the object each time, while the promise will only evaluate it once.

(task)gwcelery.tasks.first2years._log_event_and_return_query(event)[source]

Proxy that evaluates object once.

Proxy will evaluate the object each time, while the promise will only evaluate it once.

gwcelery.tasks.first2years.setup_periodic_tasks(sender, **kwargs)[source]

Register periodic tasks.

See https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html.

(task)gwcelery.tasks.first2years.upload_event()[source]

Upload a random event from the “First Two Years” paper.

After 2 minutes, randomly either retract or confirm the event to send a retraction or initial notice respectively.