Currently, lambda functions are called at least every 1 minute from Cloudwatch scheduling events.
A solution that may work will be as follows:
Install an EC2 instance and from the program that you will run as a background job, use aws sdk to call your lambda function. Example:
while True:
invoke lambda function via aws sdk
sleep for x seconds