Sha256: 660c2f0ecb39777c75689456b8b03eb03f5f979deed2f74eec61b35c49094ddf
Contents?: true
Size: 1.58 KB
Versions: 3
Compression:
Stored size: 1.58 KB
Contents
Development Notes and Todos: Needs to work with cucumber and rspec Notes Run jobs locally We don't need to run them asynchronously although it is awesome if they are. Scheduled events should fire when the timecop time says they should Initial pass can have a cucumber step for all jobs complete - this should not stick around for long though. ALternative is to have the ScheduledWorkerQueue run after every step Rspec integration test not needed, just unit test Basic model IronCuke module encapsulates access to ScheduledWorkerQueue Scheduled Workers: ScheduledWorkerQueue - A hash where each worker is keyed by the time they run. Functions run - runs all workers before current time (should this be run_with_time?) schedule - takes a worker and schedule parameters (equivalent to IronWorker service). Adds the worker into the hash at time. returns an array response equivalent to posting to iron worker. The response includes a scheduled_task_id identifying the scheduled worker cancel - takes scheduled_task_id and removes from schedule Workers stub worker.schedule to write to scheduled workers stub IronWorker.service.cancel_schedule to delegate to ScheduledWorkerQueue ## Contribute * Fork the project. * Test drive your feature addition or bug fix. Specs make all the difference here. * Commit, do not mess with Rakefile, version, or ChangeLog. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. Gem developed by Yosem Sweet and released (whenever that is) under the MIT license
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iron_cuke-0.0.2 | README |
iron_cuke-0.0.2alpha | README |
iron_cuke-0.0.1 | README |