Skip to main content

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

Project details


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 hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page