You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
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?
The text was updated successfully, but these errors were encountered:
as shown,
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?
The text was updated successfully, but these errors were encountered: