Commit Graph

1417 Commits

Author SHA1 Message Date
Ubuntu
570fdea062 functions: 0.0.49 release [skip ci] 2016-11-01 16:31:03 +00:00
Ubuntu
7f31267328 functions: 0.0.48 release [skip ci] 2016-11-01 00:37:02 +00:00
Nikhil Marathe
1397899358 Fix max memory on non-linux machines and memory decrement after failures.
* Always decrement memory even if task preparation or execution fails.

* Fall back to max 2GB memory on non-Linux. 300GB is ridiculous.

* Simplify loop
2016-10-31 17:33:04 -07:00
Ubuntu
edc639d2d6 functions: 0.0.47 release [skip ci] 2016-10-24 17:04:27 +00:00
Ubuntu
946ba1b188 functions: 0.0.46 release [skip ci] 2016-10-23 23:40:53 +00:00
Ubuntu
3f1608fbbe functions: 0.0.45 release [skip ci] 2016-10-20 21:01:07 +00:00
Ubuntu
3697fb4ca5 functions: 0.0.44 release [skip ci] 2016-10-19 23:46:38 +00:00
Ubuntu
9e73770811 functions: 0.0.43 release [skip ci] 2016-10-19 22:56:49 +00:00
Travis Reeder
3c5f682ff3 Circle release. 2016-10-19 15:52:04 -07:00
Ubuntu
940e3ef8da functions: 0.0.41 release [skip ci] 2016-10-19 22:36:43 +00:00
Ubuntu
fe7357e0b4 functions: 0.0.40 release 2016-10-19 22:06:19 +00:00
Seif Lotfy سيف لطفي
e85a31b715 Add missing swagger spec (#175)
* Add missing swagger spec

* More cleaning up of the swagger.yml and removing unused structs

* Add TaskWrapper
2016-10-19 12:22:41 -07:00
Travis Reeder
1f6b0b3ad7 functions: 0.0.39 release 2016-10-18 16:04:22 -07:00
Seif Lotfy سيف لطفي
0270eca460 remove unused ApplyAppFilter which always returns true (#177) 2016-10-17 11:37:31 -07:00
Travis Reeder
41c06644d9 Docs related to running in production. (#174)
* Fixed up api.md, removed Titan references.

* Adding more documentation on running in production.

* Update deps for ironmq.
2016-10-17 11:31:58 -07:00
C Cirello
42efb2ed6b Improve routes query (#172) 2016-10-14 21:52:25 +02:00
Travis Reeder
fcde29802e Swagger client generator. (#166) 2016-10-14 11:40:20 -07:00
C Cirello
d6e31b5d65 Skip flaky test for now (#168) 2016-10-14 13:09:53 +02:00
Travis Reeder
c40ef433d8 Minor to fix comments in PR. 2016-10-13 20:24:06 -07:00
Travis Reeder
3f5af686b1 Skipping this test for now. 2016-10-13 20:24:06 -07:00
Travis Reeder
74402bdfea Fixing tests. 2016-10-13 20:24:06 -07:00
Travis Reeder
3e443e604c Added async post command to README. 2016-10-13 20:24:06 -07:00
Travis Reeder
75383d060f Updated route_name in json to app_name. 2016-10-13 20:24:06 -07:00
Travis Reeder
25f582b180 Updated README and simplified/cleaned up some code. 2016-10-13 20:24:06 -07:00
C Cirello
df3d5b48ce Fix race condition during initialization (#163)
Currently, async workers are started before HTTP interface is available
to get their requests. It fixes by ensuring that async workers are
started after HTTP interface is up.

Essentially we are getting rid of an error message during bootstrap:

        ERRO[0000] Could not fetch task error=Get http://127.0.0.1:8080/tasks: dial tcp 127.0.0.1:8080: getsockopt: connection refused
2016-10-13 22:56:34 +02:00
C Cirello
34b4b25092 Log messages cleanup (#158) 2016-10-13 18:11:31 +02:00
C Cirello
4cbfb3ccfd Reduce test log verbosity (#150)
* Reduce test verbosity
* Divert gin's log to the test buffer
* Divert stdlib's log to the test buffer
* Add bolt tests into log buffer

* Add a linebreak to improve log output layout
2016-10-13 00:06:02 +02:00
Seif Lotfy سيف لطفي
006c01c97e Change default API URL from localhost to 127.0.0.1 (#153)
* Change host from localhost to 127.0.0.1

* change unit tests to also use 127.0.0.1 instead of localhost
2016-10-13 00:00:53 +02:00
Pedro Nasser
1ff480561a add runTask test (#131) 2016-10-12 22:32:06 +02:00
Pedro Nasser
2e12e2c700 Fix input async tasks + tests (#137) 2016-10-12 22:23:34 +02:00
Travis Reeder
32f91e83ea Fixes issues with dependencies. 2016-10-12 19:15:39 +02:00
Seif Lotfy سيف لطفي
064d597b60 Fix runner changes (#135)
* Upgrade iron-io/runner to 165c16a9

* fix support for Stdin to work
2016-10-07 21:17:40 +02:00
Pedro Nasser
52f78eb601 fix runner changes (#132)
Fix runner changes
2016-10-07 18:49:16 +02:00
Seif Lotfy سيف لطفي
970412ba88 If no task if found don't print error (#130) 2016-10-06 20:27:25 -03:00
Seif Lotfy سيف لطفي
52cab30056 Change PAYLOAD input to STDIN (#111)
* change to iron-io/runner dependency
* Fix runner dependency
* Change PAYLOAD input to STDIN, fixes #40
2016-10-06 18:44:58 -03:00
Seif Lotfy سيف لطفي
b7bf73f5d2 Makefile (#122)
* Update Readme and add Makefile
* Skip stale tests (in wait for stdin support)

* Revert "Skip stale tests (in wait for stdin support)"

This reverts commit 228da3776503f40ca53df70a79a9e4a9c73fd8b5.
2016-10-06 20:46:29 +02:00
C Cirello
3ca137a01c Upgrade to Go 1.7 (#128)
* Upgrade to stdlib context package
* Modernized syntax
2016-10-06 20:10:00 +02:00
C Cirello
aa12f3c724 Add graceful shutdown support for async runners (#125) 2016-10-06 00:32:56 +02:00
Seif Lotfy سيف لطفي
fbcec6bf40 Depend on iron-io/runner instead of iron-io/worker (#124) 2016-10-05 20:42:12 +02:00
C Cirello
eed5422c59 Fix configuration load from environment variables (#123)
Fix configuration load from environment variables
Fixed #119
2016-10-05 19:10:21 +02:00
Seif Lotfy سيف لطفي
659d30dd9f Merge pull request #118 from iron-io/issue-114
Add context do models.MessageQueue interface
2016-10-05 01:05:34 +02:00
Carlos C
bb5824fef0 Code grooming 2016-10-05 00:51:50 +02:00
Carlos C
642cda40bc Code grooming
Upper case letter when starting the sentence
2016-10-05 00:48:36 +02:00
Carlos C
bc3fba088f Fix start problem with two IronFunction colliding configurations
By default, BoltDB will hang while waiting to acquire lock to the
datafile, thus the users might find themselves waiting for something
but not what. The added timeout aims inform use about what's
happening.

Also this renames MQADR to TASKSRV, refactor configuration to read
environment variables. RunAsyncRunner now fills the gaps when
parsing TASKSRV.

Fixes #119
2016-10-04 23:57:43 +02:00
Carlos C
b15ff5ce3a context -> golang.org/x/net/context 2016-10-04 19:01:57 +02:00
Carlos C
6fd13e6754 update tests with new mq interface 2016-10-04 18:45:59 +02:00
Carlos C
0ecb6ca5cc Add context do models.MessageQueue interface 2016-10-03 23:49:08 +02:00
Seif Lotfy
a8535120da async calls return the call_id/task_id 2016-10-02 22:38:51 +02:00
Seif Lotfy
d8801d5be7 Refactor async runner and its reference and add unit tests 2016-09-30 23:29:59 +02:00
Seif Lotfy
f5c4f5f7a9 Fix unit tests due to missing mock MQ 2016-09-30 23:04:56 +02:00