Skip to content

Commit

Permalink
retialer 403 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Dec 7, 2024
1 parent 314137d commit 18e8927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion say/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
'update-needs': {
'task': 'say.tasks.update_needs.update_needs',
'schedule': crontab(minute=30, hour='0,4,8,12,16,20'),
'schedule': crontab(minute=30, hour='6,12,16,20'),
},
'report_to_family': {
'task': 'say.tasks.report_to_family.report_to_families',
Expand Down
3 changes: 3 additions & 0 deletions say/tasks/update_needs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ def update_needs(self):
)

t = []

print(f"Total needs to be updated: {len(needs)}")
for need in needs:
t.append(need.id)
print(f"updating need: {need.id}")
update_need.delay(need.id)

return t
Expand Down

0 comments on commit 18e8927

Please sign in to comment.