Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled Job fails to run in next branch #3457

Closed
gsnider2195 opened this issue Mar 20, 2023 · 1 comment
Closed

Scheduled Job fails to run in next branch #3457

gsnider2195 opened this issue Mar 20, 2023 · 1 comment
Assignees
Labels
type: bug Something isn't working as expected

Comments

@gsnider2195
Copy link
Contributor

Environment

  • Nautobot version (Docker tag too if applicable): 2.0.0alpha1
  • Python version: 3.10
  • Database platform, version: postgres 13
  • Middleware(s):

Beat scheduler raises an exception with traceback:

nautobot-celery_beat-1    | Traceback (most recent call last):
nautobot-celery_beat-1    |   File "/usr/local/lib/python3.10/site-packages/celery/apps/beat.py", line 105, in start_scheduler
nautobot-celery_beat-1    |     service.start()
nautobot-celery_beat-1    |   File "/usr/local/lib/python3.10/site-packages/celery/beat.py", line 645, in start
nautobot-celery_beat-1    |     interval = self.scheduler.tick()
nautobot-celery_beat-1    |   File "/usr/local/lib/python3.10/site-packages/celery/beat.py", line 341, in tick
nautobot-celery_beat-1    |     not self.schedules_equal(self.old_schedulers, self.schedule)):
nautobot-celery_beat-1    |   File "/usr/local/lib/python3.10/site-packages/django_celery_beat/schedulers.py", line 361, in schedule
nautobot-celery_beat-1    |     self._schedule = self.all_as_schedule()
nautobot-celery_beat-1    |   File "/usr/local/lib/python3.10/site-packages/django_celery_beat/schedulers.py", line 247, in all_as_schedule
nautobot-celery_beat-1    |     s[model.name] = self.Entry(model, app=self.app)
nautobot-celery_beat-1    |   File "/source/nautobot/core/celery/schedulers.py", line 33, in __init__
nautobot-celery_beat-1    |     self.schedule = model.scheduled_job
nautobot-celery_beat-1    | AttributeError: 'ScheduledJob' object has no attribute 'scheduled_job'
@gsnider2195 gsnider2195 added the type: bug Something isn't working as expected label Mar 20, 2023
@gsnider2195 gsnider2195 self-assigned this Mar 20, 2023
@gsnider2195
Copy link
Contributor Author

Fixed by #3459

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
No open projects
Archived in project
Development

No branches or pull requests

1 participant