Skip to content
Permalink
Browse files

split lib/*.js into single files (#503)

* split agenda.js into single files

* fix node v4/v5 incompatibility

* swtich from ternary to or

* split job.js into single files
  • Loading branch information...
OmgImAlexis committed Aug 14, 2017
1 parent ee07470 commit 2d78b12599de5483f10cd7407d7144c171614750
Showing with 1,618 additions and 1,485 deletions.
  1. +1 −1 index.js
  2. +0 −1,108 lib/agenda.js
  3. +23 −0 lib/agenda/cancel.js
  4. +17 −0 lib/agenda/create.js
  5. +42 −0 lib/agenda/database.js
  6. +50 −0 lib/agenda/db-init.js
  7. +13 −0 lib/agenda/default-concurrency.js
  8. +14 −0 lib/agenda/default-lock-lifetime.js
  9. +13 −0 lib/agenda/default-lock-limit.js
  10. +27 −0 lib/agenda/define.js
  11. +82 −0 lib/agenda/every.js
  12. +84 −0 lib/agenda/find-and-lock-next-job.js
  13. +68 −0 lib/agenda/index.js
  14. +21 −0 lib/agenda/jobs.js
  15. +14 −0 lib/agenda/locklimit.js
  16. +13 −0 lib/agenda/max-concurrency.js
  17. +14 −0 lib/agenda/mongo.js
  18. +13 −0 lib/agenda/name.js
  19. +21 −0 lib/agenda/now.js
  20. +14 −0 lib/agenda/process-every.js
  21. +14 −0 lib/agenda/purge.js
  22. +143 −0 lib/agenda/save-job.js
  23. +74 −0 lib/agenda/schedule.js
  24. +14 −0 lib/agenda/sort.js
  25. +19 −0 lib/agenda/start.js
  26. +30 −0 lib/agenda/stop.js
  27. +0 −375 lib/job.js
  28. +92 −0 lib/job/compute-next-run-at.js
  29. +10 −0 lib/job/disable.js
  30. +10 −0 lib/job/enable.js
  31. +20 −0 lib/job/fail.js
  32. +65 −0 lib/job/index.js
  33. +21 −0 lib/job/is-running.js
  34. +30 −0 lib/job/priority.js
  35. +10 −0 lib/job/remove.js
  36. +11 −0 lib/job/repeat-at.js
  37. +14 −0 lib/job/repeat-every.js
  38. +69 −0 lib/job/run.js
  39. +11 −0 lib/job/save.js
  40. +12 −0 lib/job/schedule.js
  41. +26 −0 lib/job/to-json.js
  42. +11 −0 lib/job/touch.js
  43. +13 −0 lib/job/unique.js
  44. +13 −0 lib/utils/create-job.js
  45. +7 −0 lib/utils/index.js
  46. +334 −0 lib/utils/process-jobs.js
  47. +1 −1 test/agenda.js
@@ -1,3 +1,3 @@
const Agenda = require('./lib/agenda.js');
const Agenda = require('./lib/agenda');

module.exports = Agenda;
Oops, something went wrong.

0 comments on commit 2d78b12

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.