This program takes commandline input for the datafile from where configuration will be fetched.
Project description
There are two functions present in the code.
1. status_check
2. enhanced_search
The input argument for the two function are same.
But outputs are different.status_check printsout "True" if the task should be executed immediately (If the
current time is between start time and end time).Prints 'False' otherwise
Whereas, enhanced_search serach printssout "True" if the task should be executed immediately, but if not,
it also prints out when the task would be picked up next.
Sample Input(status_check):-Email U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- True
Sample Input(status_check):-Sms U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- False
Sample Input(enhanced_search):-Email U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- True
Sample Input(enhanced_search):-Sms U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- Task will be picked up between: May/17/2015-21:00 to May/17/2015-22:00
1. status_check
2. enhanced_search
The input argument for the two function are same.
But outputs are different.status_check printsout "True" if the task should be executed immediately (If the
current time is between start time and end time).Prints 'False' otherwise
Whereas, enhanced_search serach printssout "True" if the task should be executed immediately, but if not,
it also prints out when the task would be picked up next.
Sample Input(status_check):-Email U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- True
Sample Input(status_check):-Sms U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- False
Sample Input(enhanced_search):-Email U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- True
Sample Input(enhanced_search):-Sms U1 India May/17/2015-00:00 May/17/2015-01:00
Output:- Task will be picked up between: May/17/2015-21:00 to May/17/2015-22:00
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Task_allocator.tar.gz
(2.3 kB
view details)
File details
Details for the file Task_allocator.tar.gz
.
File metadata
- Download URL: Task_allocator.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc7b4949b00414de03b5179686f1f48b484c6f311add26f47979d4777362444 |
|
MD5 | c76d959c437f3abd2641e6aab570b3e3 |
|
BLAKE2b-256 | 3c05e09bf35b3f61fa3fc2e208006d525e271ecbc01e8b213cb5ee357c389e3c |