cf-crontab

command module
v0.0.0-...-401433d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

cf-standalone

Run a crontab like scheduler as a (16MB) microservice on Cloud foundry. It knows how to trigger http, amqp, cartel and iron events. Uses bound services for credentials retrieval.

Requirements

Pick one and replace where you see HOST_HERE

Deployment

Use the below template manifest and fill in above values, save as manifest.yml

applications:
- name: cf-crontab
  disk_quota: 128M
  docker:
    image: loafoe/cf-standalone:0.0.8
  env:
    CF_CRONTAB_SECRET: PASSWORD_HERE
  instances: 1
  memory: 16M
  routes:
  - route: HOST_HERE.cloud.pcftest.com

Save the above template with your values and then deploy:

cf push -f manifest.yml

Config

For now you can only inject the config via the ENV:

Password

echo -n 'username:password'|base64

Tasks

You define tasks using the below JSON. A more detailed description and of all supported and planned tasks will follow soon. For now we have http:

[
    {
      "schedule": "*/5 * * * * *",
      "job": {
        "type": "http",
        "command": {
          "headers": {
              "Authorization": "Basic BASE64"
          },  
          "body": "{ \"countToProcess\": 0, \"serverName\": \"string\"}",
          "method": "POST",
          "url": "https://dm-sftp-poller.eu-west.philips-healthsuite.com/poll"
        }
      },
      "entryID": 1
    }
]
Standalone config

Add above JSON struct to CF_CRONTAB_CONFIG environment variable

Contact / Getting help

License

License is MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL