id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
Python_Threading_Schedule/busdriverschedulings_1505_0.txt
[ 203 , "07:00" , "07:10" , 420 , 430 , 10 ],
Python_Threading_Schedule/busdriverschedulings_467_0.txt
499
Python_Threading_Schedule/busdriverschedulings_686_0.txt
718
Python_Threading_Schedule/pythonjobscheduling_41_0.txt
Define the function that you want to run periodically. Create a thread for the function using the threading module. Start the thread and set a time delay for how often the function should run using the sleep function from the time module. Here’s a snippet of the code:
Python_Threading_Schedule/busdriverschedulings_525_0.txt
557
Python_Threading_Schedule/busdriverschedulings_537_0.txt
569
Python_Threading_Schedule/1722_41_0.txt
[ google ](/google) / **[ or-tools ](/google/or-tools) ** Public
Python_Threading_Schedule/busdriverschedulings_1398_0.txt
[ 96 , "05:52" , "06:23" , 352 , 383 , 31 ],
Python_Threading_Schedule/busdriverschedulings_263_0.txt
295
Python_Threading_Schedule/busdriverschedulings_201_0.txt
233
Python_Threading_Schedule/busdriverschedulings_1131_0.txt
[ 31 , "06:50" , "07:05" , 410 , 425 , 15 ],
Python_Threading_Schedule/busdriverschedulings_797_0.txt
829
Python_Threading_Schedule/busdriverschedulings_503_0.txt
535
Python_Threading_Schedule/busdriverschedulings_489_0.txt
521
Python_Threading_Schedule/busdriverschedulings_1748_0.txt
[ 446 , "09:54" , "10:05" , 594 , 605 , 11 ],
Python_Threading_Schedule/busdriverschedulings_324_0.txt
356
Python_Threading_Schedule/busdriverschedulings_1070_0.txt
[ 22 , "10:20" , "10:30" , 620 , 630 , 10 ],
Python_Threading_Schedule/busdriverschedulings_1556_0.txt
[ 254 , "07:30" , "08:35" , 450 , 515 , 65 ],
Python_Threading_Schedule/busdriverschedulings_800_0.txt
832
Python_Threading_Schedule/busdriverschedulings_882_0.txt
914
Python_Threading_Schedule/busdriverschedulings_1092_0.txt
[ 44 , "17:23" , "18:10" , 1043 , 1090 , 47 ],
Python_Threading_Schedule/busdriverschedulings_734_0.txt
766
Python_Threading_Schedule/busdriverschedulings_408_0.txt
440
Python_Threading_Schedule/busdriverschedulings_1122_0.txt
[ 22 , "06:27" , "06:44" , 387 , 404 , 17 ],
Python_Threading_Schedule/pythonjobscheduling_79_0.txt
Install the RunMyJobs Python client library. You can install it using pip by running pip install runmyjobs. Create a Python script that defines your job. This script should include the code you want to run and any necessary dependencies. Upload your Python script and any necessary dependencies to RunMyJobs. You can do ...
Python_Threading_Schedule/busdriverschedulings_505_0.txt
537
Python_Threading_Schedule/busdriverschedulings_971_0.txt
# Licensed under the Apache License, Version 2.0 (the "License");
Python_Threading_Schedule/busdriverschedulings_768_0.txt
800
Python_Threading_Schedule/busdriverschedulings_673_0.txt
705
Python_Threading_Schedule/busdriverschedulings_35_0.txt
To see all available qualifiers, see our [ documentation ](https://docs.github.com/search-github/github-code-search/understanding- github-code-search-syntax) .
Python_Threading_Schedule/busdriverschedulings_352_0.txt
384
Python_Threading_Schedule/busdriverschedulings_1717_0.txt
[ 415 , "09:25" , "10:04" , 565 , 604 , 39 ],
Python_Threading_Schedule/busdriverschedulings_796_0.txt
828
Python_Threading_Schedule/busdriverschedulings_658_0.txt
690
Python_Threading_Schedule/busdriverschedulings_1573_0.txt
[ 271 , "07:42" , "08:30" , 462 , 510 , 48 ],
Python_Threading_Schedule/busdriverschedulings_633_0.txt
665
Python_Threading_Schedule/busdriverschedulings_76_0.txt
108
Python_Threading_Schedule/busdriverschedulings_439_0.txt
471
Python_Threading_Schedule/busdriverschedulings_1778_0.txt
[ 476 , "10:23" , "11:30" , 623 , 690 , 67 ],
Python_Threading_Schedule/busdriverschedulings_523_0.txt
555
Python_Threading_Schedule/1722_85_0.txt
Copy link
Python_Threading_Schedule/busdriverschedulings_1898_0.txt
[ 596 , "12:11" , "12:55" , 731 , 775 , 44 ],
Python_Threading_Schedule/busdriverschedulings_1003_0.txt
"instance" , 0 , "Instance to select (0, 1, 2, 3)." , 0 , 3
Python_Threading_Schedule/busdriverschedulings_448_0.txt
480
Python_Threading_Schedule/busdriverschedulings_1064_0.txt
[ 16 , "08:40" , "08:50" , 520 , 530 , 10 ],
Python_Threading_Schedule/busdriverschedulings_1409_0.txt
[ 107 , "05:58" , "06:43" , 358 , 403 , 45 ],
Python_Threading_Schedule/busdriverschedulings_1660_0.txt
[ 358 , "08:40" , "08:50" , 520 , 530 , 10 ],
Python_Threading_Schedule/1722_16_0.txt
* Open Source
Python_Threading_Schedule/busdriverschedulings_784_0.txt
816
Python_Threading_Schedule/busdriverschedulings_1272_0.txt
[ 172 , "19:30" , "19:40" , 1170 , 1180 , 10 ],
Python_Threading_Schedule/busdriverschedulings_1931_0.txt
[ 629 , "12:34" , "12:45" , 754 , 765 , 11 ],
Python_Threading_Schedule/busdriverschedulings_1541_0.txt
[ 239 , "07:20" , "07:57" , 440 , 477 , 37 ],
Python_Threading_Schedule/1722_115_0.txt
# Node not performed # - set both driving times to 0 # - add a looping arc on the node model.Add(total_driving[d, s] == 0).OnlyEnforceIf( performed[d, s].Not()) model.Add(no_break_driving[d, s] == 0).OnlyEnforceIf( performed[d, s].Not()) incoming_literals[s].append(performed[d, s].Not()) outgoing_literals[s].appe...
Python_Threading_Schedule/busdriverschedulings_480_0.txt
512
Python_Threading_Schedule/busdriverschedulings_150_0.txt
182
Python_Threading_Schedule/busdriverschedulings_1496_0.txt
[ 194 , "06:54" , "07:20" , 414 , 440 , 26 ],
Python_Threading_Schedule/1722_83_0.txt
Sorry, something went wrong.
Python_Threading_Schedule/busdriverschedulings_915_0.txt
947
Python_Threading_Schedule/pythonjobscheduling_49_0.txt
Method 3: A Schedule Library While loops aren’t visually appealing, but a schedule library fixes this problem.
Python_Threading_Schedule/busdriverschedulings_459_0.txt
491
Python_Threading_Schedule/busdriverschedulings_876_0.txt
908
Python_Threading_Schedule/busdriverschedulings_862_0.txt
894
Python_Threading_Schedule/busdriverschedulings_285_0.txt
317
Python_Threading_Schedule/busdriverschedulings_1404_0.txt
[ 102 , "05:56" , "06:06" , 356 , 366 , 10 ],
Python_Threading_Schedule/busdriverschedulings_1366_0.txt
[ 64 , "05:29" , "05:44" , 329 , 344 , 15 ],
Python_Threading_Schedule/pythonjobscheduling_98_0.txt
Popular Articles
Python_Threading_Schedule/busdriverschedulings_1525_0.txt
[ 223 , "07:11" , "08:36" , 431 , 516 , 85 ],
Python_Threading_Schedule/busdriverschedulings_61_0.txt
# bus_driver_scheduling_sat.py
Python_Threading_Schedule/busdriverschedulings_16_0.txt
* Open Source
Python_Threading_Schedule/busdriverschedulings_28_0.txt
We read every piece of feedback, and take your input very seriously.
Python_Threading_Schedule/1722_103_0.txt
model = cp_model.CpModel()
Python_Threading_Schedule/busdriverschedulings_1_0.txt
## Navigation Menu
Python_Threading_Schedule/busdriverschedulings_918_0.txt
950
Python_Threading_Schedule/busdriverschedulings_1825_0.txt
[ 523 , "11:09" , "12:03" , 669 , 723 , 54 ],
Python_Threading_Schedule/busdriverschedulings_1473_0.txt
[ 171 , "06:41" , "08:00" , 401 , 480 , 79 ],
Python_Threading_Schedule/busdriverschedulings_428_0.txt
460
Python_Threading_Schedule/busdriverschedulings_52_0.txt
Blame
Python_Threading_Schedule/busdriverschedulings_17_0.txt
* [ GitHub Sponsors Fund open source developers ](https://github.com/sponsors)
Python_Threading_Schedule/busdriverschedulings_681_0.txt
713
Python_Threading_Schedule/busdriverschedulings_449_0.txt
481
Python_Threading_Schedule/busdriverschedulings_1531_0.txt
[ 229 , "07:16" , "08:50" , 436 , 530 , 94 ],
Python_Threading_Schedule/busdriverschedulings_922_0.txt
954
Python_Threading_Schedule/busdriverschedulings_1271_0.txt
[ 171 , "19:26" , "20:08" , 1166 , 1208 , 42 ],
Python_Threading_Schedule/busdriverschedulings_926_0.txt
958
Python_Threading_Schedule/1722_106_0.txt
# Per driver info (start, end, driving times, is working) start_times = [] end_times = [] driving_times = [] working_drivers = [] working_times = []
Python_Threading_Schedule/busdriverschedulings_367_0.txt
399
Python_Threading_Schedule/busdriverschedulings_203_0.txt
235
Python_Threading_Schedule/busdriverschedulings_1590_0.txt
[ 288 , "07:53" , "08:35" , 473 , 515 , 42 ],
Python_Threading_Schedule/busdriverschedulings_1124_0.txt
[ 24 , "06:31" , "06:43" , 391 , 403 , 12 ],
Python_Threading_Schedule/busdriverschedulings_96_0.txt
128
Python_Threading_Schedule/busdriverschedulings_1757_0.txt
[ 455 , "10:01" , "10:13" , 601 , 613 , 12 ],
Python_Threading_Schedule/busdriverschedulings_1754_0.txt
[ 452 , "09:59" , "10:53" , 599 , 653 , 54 ],
Python_Threading_Schedule/busdriverschedulings_298_0.txt
330
Python_Threading_Schedule/Python_schedule__8_0.txt
## Get several jobs, filtered by tags ¶ You can retrieve a group of jobs from the scheduler, selecting them by a unique identifier. import schedule def greet(name): print('Hello {}'.format(name)) schedule.every().day.do(greet, 'Andrea').tag('daily-tasks', 'friend') schedu...
Python_Threading_Schedule/busdriverschedulings_101_0.txt
133
Python_Threading_Schedule/busdriverschedulings_957_0.txt
989
Python_Threading_Schedule/pythonjobscheduling_38_0.txt
This method is unsuitable for long-running or complex tasks as it may block the main thread and make your application unresponsive.
Python_Threading_Schedule/busdriverschedulings_217_0.txt
249
Python_Threading_Schedule/busdriverschedulings_927_0.txt
959
Python_Threading_Schedule/busdriverschedulings_859_0.txt
891