Overview
Comment: | Partially correct sync time handling for cron |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.64 |
Files: | files | file ages | folders |
SHA1: |
66afe01542dd4cc959fcc8125269b7b6 |
User & Date: | matt on 2017-03-07 07:41:57 |
Other Links: | branch diff | manifest | tags |
Context
2017-03-07
| ||
09:41 | Fixed few bugs in trigger handling check-in: 47b1c10120 user: matt tags: v1.64 | |
07:41 | Partially correct sync time handling for cron check-in: 66afe01542 user: matt tags: v1.64 | |
2017-03-06
| ||
22:53 | Escape * as X check-in: 9987475474 user: matt tags: v1.64 | |
Changes
Modified mtut.scm from [5e91bc3fc1] to [fc89c63934].
︙ | |||
349 350 351 352 353 354 355 356 357 358 359 360 361 362 | 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | + + + + + | (ptype (alist-ref 'T apkt))) (add-to-queue pdb pktdat uuid (or ptype 'cmd) #f 0) (debug:print 4 *default-log-port* "Added " uuid " of type " ptype " to queue")) (debug:print 4 *default-log-port* "pkt: " uuid " exists, skipping...") ))) pkts)))) (string-split pktsdirs))))) (define (get-pkt-alists pkts) (map (lambda (x) (alist-ref 'pkta x)) ;; 'pkta pulls out the alist from the read pkt pkts)) ;;====================================================================== ;; Runs ;;====================================================================== ;; make a runname ;; |
︙ | |||
508 509 510 511 512 513 514 | 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 | - + - - + + + + + + + + + + + + + + + + - - - - - + + + + + - - + + + - - - - + + + + | (ruletype (if (> len-key 1)(cadr keyparts) #f)) (action (if (> len-key 2)(caddr keyparts) #f)) ;; (val-list (string-split-fields ";\\s*" val #:infix)) ;; (string-split val)) ;; runname-rule params (val-alist (val->alist val)) (runname (make-runname "" "")) (runstarts (find-pkts pdb '(runstart) `((o . ,contour) (t . ,runkey)))) |
︙ | |||
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 | 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 | + + - + + + | (contours (configf:get-section mtconf "contours")) (pkts (find-pkts pdb '(cmd) '())) (torun (make-hash-table)) ;; target => ( ... info ... ) (rgentargs (hash-table-keys rgconf))) ;; these are the targets registered for automatically triggering (for-each (lambda (pktdat) (let* ((pkta (alist-ref 'pkta pktdat)) (action (alist-ref 'a pkta)) (cmdline (pkt->cmdline pkta)) (uuid (alist-ref 'Z pkta)) (logf (conc logdir "/" uuid "-run.log"))) (system (conc "NBFAKE_LOG=" logf " nbfake " cmdline)) (mark-processed pdb (list (alist-ref 'id pktdat))) (let-values (((ack-uuid ack-pkt) (add-z-card (construct-sdat 'P uuid 'T (case (string->symbol action) |
︙ |
Modified runconfigs.config from [0dc22988e9] to [aa6963f9bf].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + - - - + + + | # example of a cron entry to run sync using db spec pgdb, with pgdb setting in file local.config # [a/b/c] all:scheduled:sync cron= 5 * * * *;dbdest=pgdb;appendconf=/mfs/matt/.sysmaint/local.config # tip will be replaced with hashkey [v1.63/tip/dev] # file: files changes since last run trigger new run # script: script is called with unix seconds as last parameter (other parameters are preserved) # # contour:sensetype:action params data |
︙ |