Return-Path: X-Original-To: apmail-aurora-reviews-archive@minotaur.apache.org Delivered-To: apmail-aurora-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D6E217DB9 for ; Sat, 22 Nov 2014 01:18:12 +0000 (UTC) Received: (qmail 61446 invoked by uid 500); 22 Nov 2014 01:18:12 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 61402 invoked by uid 500); 22 Nov 2014 01:18:12 -0000 Mailing-List: contact reviews-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.incubator.apache.org Delivered-To: mailing list reviews@aurora.incubator.apache.org Received: (qmail 61391 invoked by uid 99); 22 Nov 2014 01:18:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2014 01:18:11 +0000 X-ASF-Spam-Status: No, hits=-1997.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 22 Nov 2014 01:17:47 +0000 Received: (qmail 61246 invoked by uid 99); 22 Nov 2014 01:17:45 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2014 01:17:45 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 4216D1DB13E; Sat, 22 Nov 2014 01:17:44 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2981506205580048203==" MIME-Version: 1.0 Subject: Re: Review Request 28350: Add cron replace command. From: "Maxim Khutornenko" To: "Bill Farner" , "David McLaughlin" Cc: "Aurora" , "Kevin Sweeney" , "Maxim Khutornenko" Date: Sat, 22 Nov 2014 01:17:44 -0000 Message-ID: <20141122011744.15353.2895@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Maxim Khutornenko" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/28350/ X-Sender: "Maxim Khutornenko" References: <20141121232614.16171.59345@reviews.apache.org> In-Reply-To: <20141121232614.16171.59345@reviews.apache.org> Reply-To: "Maxim Khutornenko" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============2981506205580048203== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Nov. 21, 2014, 11:26 p.m., Kevin Sweeney wrote: > > docs/cron-jobs.md, line 89 > > > > > > Hold on a sec - why do we have this and cron schedule (see above)? > > Maxim Khutornenko wrote: > The "cron replace" is an atomic convenience command for "cron deschedule" + "cron schedule". It finalizes the cron/service split: > job create <> cron schedule > job killall <> cron deschedule (with caveat that active tasks are not killed) > job update <> cron replace > > Kevin Sweeney wrote: > cron schedule does both "job create" and "job update" What..? I completely forgot that scheduleCronJob actually acts as "upsert". Should we move the "update" functionality from it in favor of replaceCronTemplate and have our client `cron` commands consistent with `job` commands though? I can argue both ways. Any thoughts? - Maxim ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28350/#review62676 ----------------------------------------------------------- On Nov. 22, 2014, 12:54 a.m., Maxim Khutornenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28350/ > ----------------------------------------------------------- > > (Updated Nov. 22, 2014, 12:54 a.m.) > > > Review request for Aurora, David McLaughlin and Bill Farner. > > > Bugs: AURORA-921 > https://issues.apache.org/jira/browse/AURORA-921 > > > Repository: aurora > > > Description > ------- > > Implementing "aurora cron replace" command to close the functionality gap that will be created with client updater removal. > > > Diffs > ----- > > docs/clientv2.md 6e69af3837f63321e273f1df7b0f5a1c07505cc7 > docs/cron-jobs.md 7d04bcd3776bfd85f14e4398c4bc57dfbbdbcc72 > src/main/python/apache/aurora/client/api/__init__.py d12132f8ee64a390c9b5b4c9ab26b5e4b2b1bb59 > src/main/python/apache/aurora/client/cli/cron.py cfd957cb99fb1c0bff04f0c91969a66faaf3b6f2 > src/main/python/apache/aurora/client/cli/update.py 12774af8bcd1c953fdbc799b0a142c27407d69f5 > src/test/python/apache/aurora/client/api/test_api.py 1f4e9fe9111ac88726d7c45b699b3b91438448b6 > src/test/python/apache/aurora/client/cli/test_cron.py c748212febf5867f5f7cc54e34bf91a8890d9999 > src/test/python/apache/aurora/client/cli/test_supdate.py 7637352feea6b07408256158814c05bc17ec14f3 > src/test/python/apache/aurora/client/cli/util.py 0ec74e675aaabc7ac0cb28e02f5b8534570b7a49 > > Diff: https://reviews.apache.org/r/28350/diff/ > > > Testing > ------- > > ./pants src/test/python:all > > tested in vagrant as well > > > Thanks, > > Maxim Khutornenko > > --===============2981506205580048203==--