#celery

[ follow ]
Cooking
fromDaily News
16 hours ago

Recipe: Stir-Fried Celery with Peanuts and Bacon is an ideal weeknight dish

Stir-fried celery with peanuts and bacon is a quick weeknight dish served over rice with chili oil, pairing well with steamed rice and fresh tangerines.
Cooking
fromTasting Table
2 weeks ago

Forget Green Beans, This Veggie Used To Be A Staple On Thanksgiving Tables For Decades - Tasting Table

Celery was once a prominent Thanksgiving centerpiece in late 19th and early 20th century America before falling out of favor.
fromStreamHacker
1 month ago

Monitoring Celery Tasks with Sentry

Sentry is a great tool for monitoring celery tasks, and alerting when they fail or don't run on time. But it requires a bit of work to setup properly. Below is some sample code for setting up sentry monitoring of periodic tasks, followed by an explanation. import math import sentry_sdk from celery import signals from sentry_sdk import monitor from sentry_sdk.integrations.celery import CeleryIntegration @signals.beat_init.connect # if you use beats @signals.celeryd_init.connect def init_sentry(**kwargs): sentry_sdk.init( dsn=..., integrations=[ CeleryIntegration(monitor_beat_tasks=False) ] ) @signals.worker_shutdown.connect @signals.task_postrun.connect def flush_sentry(**kwargs): sentry_sdk.flush(timeout=5) def add_periodic_task(celery, schedule, task): max_runtime = math.ceil(schedule * 4 / 60) monitor_config = { "recovery_threshold": 1, "failure_issue_threshold": 10, "checkin_margin": max_runtime, "max_runtime": max_runtime, "schedule": { "type": "interval", "value": math.ceil(schedule / 60.0) "unit": "minute" } } name = task.__name__ task = monitor(monitor_slug=name, monitor_config=monitor_config)(task) celery.add_periodic_task(schedule, celery.task(task).s(), name=name)
Python
fromwww.theguardian.com
2 months ago

Three vibrant and crunchy Japanese-style pickles recipes

Pink radish amazu zuke (sweet pickle), below, is a great way to brighten up your plate, and it's incredibly easy to make. When preparing it, the radish initially loses its colour, which transfers into the pickling liquid. After a few days, the liquid turns the radish into a beautiful, vibrant pink. I find the colour is perfect by the third day. You can keep it longer if you want but, interestingly, if you leave it too long the colour fades again.
Cooking
Cooking
fromTasting Table
4 months ago

Don't Throw Away Those Celery Leaves - Turn Them Into A Seasoning Salt Instead - Tasting Table

Celery leaves can be transformed into versatile celery salt, adding flavor to various dishes.
[ Load more ]