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

[v12 bug] bench trigger-scheduler-event AttributeError #9330

Closed
racitup opened this issue Jan 20, 2020 · 4 comments · Fixed by #12955
Closed

[v12 bug] bench trigger-scheduler-event AttributeError #9330

racitup opened this issue Jan 20, 2020 · 4 comments · Fixed by #12955
Assignees
Labels

Comments

@racitup
Copy link
Contributor

racitup commented Jan 20, 2020

Description of the issue

Run bench trigger-scheduler-event gives AttributeError

Context information (for bug reports)

Output of bench version

Frappe Framework: v12.x.x-develop () (develop)

Steps to reproduce the issue

  1. Run bench trigger-scheduler-event plaid_settings.automatic_synchronization

Observed result

Traceback below

Expected result

Scheduled job runs

Stacktrace / full error message

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/frappe/staging-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
    main()
  File "/home/frappe/staging-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/frappe/staging-bench/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/staging-bench/env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/frappe/staging-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/staging-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/staging-bench/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/staging-bench/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/staging-bench/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/frappe/staging-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/frappe/staging-bench/apps/frappe/frappe/commands/scheduler.py", line 30, in trigger_scheduler_event
    frappe.utils.scheduler.trigger(site, event, now=True)
AttributeError: module 'frappe.utils.scheduler' has no attribute 'trigger'

Additional information

ubuntu 18.04

@racitup racitup added the bug label Jan 20, 2020
@racitup

This comment has been minimized.

@jtarun4625
Copy link

So it will just run the method but in backgrounds jobs are running or not ?

@hasnain2808
Copy link
Contributor

replicable on v13 too

@gavindsouza
Copy link
Collaborator

@racitup Which branch are you running on? v12 works fine. Only develop and version-13 seem to be affected by this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants