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

Performance on multi cronjobs #14

Open
liho00 opened this issue Nov 16, 2022 · 0 comments
Open

Performance on multi cronjobs #14

liho00 opened this issue Nov 16, 2022 · 0 comments

Comments

@liho00
Copy link

liho00 commented Nov 16, 2022

    Cron().schedule(
        # Turn off logging for job that runs every five seconds
        Tab(name='first_job', verbose=True).every(
            seconds=5).run(my_job, 'first', seconds=5),
        Tab(name='second_job', verbose=True).every(
            seconds=15).run(my_job, 'second', seconds=15),
    ).go()

image

as shown,

2022-11-16 12:13:40,003 [35667] INFO     first_job: Running first_job
args=('first',) kwargs={'seconds': 5} running at 2022-11-16 12:13:40.003657
2022-11-16 12:13:45,004 [35667] INFO     first_job: Running first_job
2022-11-16 12:13:45,005 [35668] INFO     second_job: Running second_job
args=('first',) kwargs={'seconds': 5} running at 2022-11-16 12:13:45.005105
args=('second',) kwargs={'seconds': 15} running at 2022-11-16 12:13:45.005147

second job always slower than first job, I am willing to PR but I have no idea how to improve it,
@robdmc could you share me some though on how to improve this to become asycn process task?

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

1 participant