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

add_jobs function with parameters fails with error #230

Closed
antani opened this issue Oct 9, 2017 · 3 comments
Closed

add_jobs function with parameters fails with error #230

antani opened this issue Oct 9, 2017 · 3 comments

Comments

@antani
Copy link

antani commented Oct 9, 2017

I am on apscheduler-3.3.1, with a simple add_jobs example, I keep getting
ValueError: The list of positional arguments is longer than the target callable can handle (allowed: 1, given in args: 2)

The code is:

scheduler = BlockingScheduler()
     scheduler.add_job(process_live_calls,'interval',args=[today_list,exchange],minutes=3,start_date=_start_date)
     scheduler.start()

I have tried all variations of different parameters as per docs but with every variation, this error keeps popping up

@agronholm
Copy link
Owner

Could you at least include the signature of process_live_calls() here?

@antani antani closed this as completed Oct 9, 2017
@Keramatfar
Copy link

Similar problem.

@agronholm
Copy link
Owner

@Keramatfar not helpful. If you think there is a bug, please do a little bit of investigation and create a ticket with details that will let me resolve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants