Skip to content

Commit 4498566

Browse files
Merge pull request #531 from biocore/csymons_celery_20230829
Celery Adjustments for Setting Overhaul Live
2 parents 9844d12 + bfe1962 commit 4498566

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

microsetta_private_api/celery_utils.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ def __call__(self, *args, **kwargs):
3737
"task": "microsetta_private_api.admin.daklapack_polling.poll_dak_orders", # noqa
3838
"schedule": 60 * 60 * 4 # every 4 hours
3939
},
40-
# "update_qiita_metadata": {
41-
# "task": "microsetta_private_api.tasks.update_qiita_metadata", # noqa
42-
# "schedule": 60 * 60 * 24 # every 24 hours
43-
# },
40+
"update_qiita_metadata": {
41+
"task": "microsetta_private_api.tasks.update_qiita_metadata", # noqa
42+
"schedule": 60 * 60 * 24 # every 24 hours
43+
},
4444
"pull_fundrazr_transactions": {
4545
"task": "microsetta_private_api.util.fundrazr.get_fundrazr_transactions", # noqa
4646
"schedule": 60 * 60 # every hour
4747
},
48-
"fulfill_new_transactions": {
49-
"task": "microsetta_private_api.util.perk_fulfillment.fulfill_new_transactions", # noqa
50-
"schedule": 60 * 60 # every hour
51-
},
48+
# "fulfill_new_transactions": {
49+
# "task": "microsetta_private_api.util.perk_fulfillment.fulfill_new_transactions", # noqa
50+
# "schedule": 60 * 60 # every hour
51+
# },
5252
# "fulfill_subscriptions": {
5353
# "task": "microsetta_private_api.util.perk_fulfillment.process_subscription_fulfillments", # noqa
5454
# "schedule": 60 * 60 * 24 # every 24 hours
@@ -57,10 +57,10 @@ def __call__(self, *args, **kwargs):
5757
"task": "microsetta_private_api.util.perk_fulfillment.check_shipping_updates", # noqa
5858
"schedule": 60 * 60 * 4 # every 4 hours
5959
},
60-
# "perks_without_fulfillment_details": {
61-
# "task": "microsetta_private_api.util.perk_fulfillment.perks_without_fulfillment_details", # noqa
62-
# "schedule": 60 * 60 * 24 # every 24 hours
63-
# },
60+
"perks_without_fulfillment_details": {
61+
"task": "microsetta_private_api.util.perk_fulfillment.perks_without_fulfillment_details", # noqa
62+
"schedule": 60 * 60 * 24 # every 24 hours
63+
},
6464
# "fetch_ffqs": {
6565
# "task": "microsetta_private_api.util.vioscreen.fetch_ffqs",
6666
# "schedule": 60 * 60 * 24 # every 24 hours

microsetta_private_api/celery_worker.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44
from microsetta_private_api.admin.daklapack_polling import poll_dak_orders
55
from microsetta_private_api.util.fundrazr import get_fundrazr_transactions
66
from microsetta_private_api.util.perk_fulfillment import check_shipping_updates
7-
# from microsetta_private_api.tasks import update_qiita_metadata
7+
from microsetta_private_api.tasks import update_qiita_metadata
88
init_celery(celery, app.app)
99

1010
# Run any celery tasks that require initialization on worker start
1111
refresh_headers.delay() # Initialize the vioscreen task with a token
1212
poll_dak_orders.delay() # check for orders
1313
get_fundrazr_transactions.delay() # check for new transactions
1414
check_shipping_updates.delay() # check for tracking updates
15-
# update_qiita_metadata.delay() # run Qiita metadata push
16-
17-
# Disabling Qiita metadata push until we have survey changes in place and
18-
# are ready to test. - Cassidy 2022-12-01
15+
update_qiita_metadata.delay() # run Qiita metadata push

0 commit comments

Comments
 (0)